#11252: Invalid XHTML when filtering a paginated list
----------------------------------+-----------------------------------------
Reporter: daemondazz | Owner: nobody
Status: new | Milestone:
Component: django.contrib.admin | Version: 1.0
Keywords: | Stage: Unreviewed
Has_patch: 1 |
----------------------------------+-----------------------------------------
The admin sites generates invalid XHTML when viewing a filtered list of
objects and that list needs to be paginated. The invalid tags are the
links for jumping to different pages in the result set which have query
string like "{{{?p=2&domain__exact=1}}}" instead of
"{{{?p=2&domain__exact=1}}}".
This manifests if the site has
DEFAULT_CONTENT_TYPE = 'application/xhtml+xml'
set in the settings file: Firefox displays an error message about the
invalid XHTML code and is not able to show the page.
The culprit in this case is passing the results of urllib.urlencode
directly back to the HTML without fixing the amperstands.
Patch to be attached in a moment.
--
Ticket URL: <http://code.djangoproject.com/ticket/11252>
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---