#11791: Incorrect HTML Code rendered in list_editable enabled changelists
-------------------------------------------------------------------+--------
 Reporter:  pa...@fragstore.net                                    |       
Owner:  nobody    
   Status:  new                                                    |   
Milestone:            
Component:  Contrib apps                                           |     
Version:  1.1       
 Keywords:  list_editable, admin_list.py, items_for_result, opera  |       
Stage:  Unreviewed
Has_patch:  0                                                      |  
-------------------------------------------------------------------+--------
 items_for_result in django.contrib.admin.templatetags.admin_list.py
 appends the hidden field for the form-id to the output which, in the case
 of the multiple forms in the change form, results in an input field right
 after the last field which has been rendered:

 Example:
 {{{
 <td><img src="http://127.0.0.1:8199/media/img/admin/icon-no.gif";
 alt="False" /></td><td><img src="http://127.0.0.1:8199/media/img/admin
 /icon-no.gif" alt="0" /></td><input type="hidden" name="form-1-id"
 value="3287" id="id_form-1-id" /></tr>
 }}}

 As far as I know that type of HTML element isn't allowed between the
 closing tags of TD and TR. This results in corrupted output when using
 Opera to view such a change list - it renders an empty blue line on top of
 the change list for every item in the change list.


 A quick fix would be to let items_for_result "inject" the hidden input
 right after the last field itself, inside its TD, not outside.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11791>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to