RESOLVED INVALID 13149
Character Entity References Should be Included based on namespace rather than MIME Type
https://bugs.webkit.org/show_bug.cgi?id=13149
Summary Character Entity References Should be Included based on namespace rather than...
Robert Burns
Reported 2007-03-21 14:41:11 PDT
Currently, when rendering an XHTML page, WebKit does not recognize character entity references from the HTML namespace unless the MIME Type is application/xhtml+xml (or obviously text/html). If the page is delivered as application/xml, the named character entity references do not work. A better behavior (and the one supported in FireFox), would be to resolve and render the character entity referrences based on the namespace(s) of the document fragment. In this way simply declararing the namespace on a document fragment would enable charaqcter entity references from that namespace for that fragment: at least for those namespaces WebKit had knowledge of.
Attachments
listing of named, numeric (hex), and numeric (dec) character references (51.02 KB, application/xml)
2007-03-21 14:49 PDT, Robert Burns
no flags
listing of named, numeric (hex), and numeric (dec) character reference (for comparison) (51.02 KB, application/xhtml+xml)
2007-03-21 15:44 PDT, Robert Burns
no flags
Robert Burns
Comment 1 2007-03-21 14:49:13 PDT
Created attachment 13749 [details] listing of named, numeric (hex), and numeric (dec) character references
Robert Burns
Comment 2 2007-03-21 15:44:58 PDT
Created attachment 13751 [details] listing of named, numeric (hex), and numeric (dec) character reference (for comparison)
Robert Burns
Comment 3 2007-03-21 17:12:51 PDT
I'm going to work on some more test cases. It appears these attachments load fine. Whieh may mean this is releated to an XSLT. It appears the bug is invalid. Could someone make that change. I'll change the it back or reopen if I learn anything new.
David Kilzer (:ddkilzer)
Comment 4 2007-03-21 22:58:18 PDT
Marking as RESOLVED/INVALID per Comment #3.
Alexey Proskuryakov
Comment 5 2007-03-21 23:11:25 PDT
Please also note that entity substitution happens earlier than the namespace becomes known. After all, entities are supposed to work in XML attributes themselves, too.
Robert Burns
Comment 6 2007-03-22 00:19:58 PDT
(In reply to comment #5) > Please also note that entity substitution happens earlier than the namespace > becomes known. After all, entities are supposed to work in XML attributes > themselves, too. > However, that would only be an issue if the xmlns defined additional charaacter entity references (which I believe it does not). Even if it does, it just means that the attributes in that xmlns namesapce would have to be processed first before the branches of the tree within those namespace declarations could be processed.
Note You need to log in before you can comment on or make changes to this bug.