Viewing Atom feed in IE7 fails on nbsp
Bug #422571 reported by
Paul Everitt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KARL3 |
Fix Released
|
Medium
|
Chris Rossi |
Bug Description
(Reported by Oxfam)
Lots of user-generated content contains and other HTML entities in the content (© etc.). These are valid HTML but, when parsed using an XML parser and no DTD or schema, fail the well-formed XML test.
IE7 appears to parse Atom using an XML parser. Thus, any Atom feed that contains fails.
Proposed Solution
=================
- When rendering Atom, convert those entities to their numeric/hex equivalents
- Don't try doing this on storage. Pay the price when rendering the Atom view.
- Write some unit tests that catch this.
description: | updated |
Changed in karl3: | |
status: | New → In Progress |
Changed in karl3: | |
status: | In Progress → Fix Committed |
Changed in karl3: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Paul, I'm noticing that the atom feed template doesn't use 'structure' for the entry content, so HTML is getting escaped to > and < entities. I suspect we actually want to use 'structure' to leave the html intact in entries. Does that seem right to you?