Invalid XHTML when filtering a paginated list
|Reported by:||daemondazz||Owned by:||nobody|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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 "
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.
Change History (8)
comment:1 Changed 7 years ago by
|Patch needs improvement:||set|
|Triage Stage:||Unreviewed → Accepted|
|Version:||1.0 → SVN|
comment:3 Changed 7 years ago by
|Patch needs improvement:||unset|
|Triage Stage:||Accepted → Ready for checkin|