Bug 13149 - Character Entity References Should be Included based on namespace rather than MIME Type
Summary: Character Entity References Should be Included based on namespace rather than...
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: XML (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-21 14:41 PDT by Robert Burns
Modified: 2007-03-22 00:19 PDT (History)
0 users

See Also:


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 Details
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 Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Burns 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.
Comment 1 Robert Burns 2007-03-21 14:49:13 PDT
Created attachment 13749 [details]
listing of named, numeric (hex), and numeric (dec) character references
Comment 2 Robert Burns 2007-03-21 15:44:58 PDT
Created attachment 13751 [details]
listing of named, numeric (hex), and numeric (dec) character reference (for comparison)
Comment 3 Robert Burns 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.
Comment 4 David Kilzer (:ddkilzer) 2007-03-21 22:58:18 PDT
Marking as RESOLVED/INVALID per Comment #3.

Comment 5 Alexey Proskuryakov 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.
Comment 6 Robert Burns 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.