Closed
Bug 269713
Opened 21 years ago
Closed 21 years ago
DOMParser wrongly parses XHTML
Categories
(Core :: DOM: HTML Parser, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: porton, Unassigned)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7) Gecko/20040823 Firefox/0.9.3
Build Identifier: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7) Gecko/20040823 Firefox/0.9.3
Mozilla (Firefox 0.9.3) wrongly parses (with DOMParser) the below XML file. It
loses the prefix "xml" in "xml:lang" so that "xml:lang" becomes just "lang"
(node.attributes[i].prefix == null).
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"/>
The bug is specific for xmlns being namely http://www.w3.org/1999/xhtml
Reproducible: Always
Steps to Reproduce:
Evalate:
new DOMParser().parseFromString('<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en"/>', "text/xml").documentElement.attributes[1].name
Actual Results:
Value "lang"
Expected Results:
Value "xml:lang"
Comment 1•21 years ago
|
||
WFM Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107
Firefox/1.0
try with a newer version
Updated•21 years ago
|
Assignee: firefox → parser
Component: General → HTML: Parser
Product: Firefox → Browser
QA Contact: firefox.general → mrbkap
Version: unspecified → Trunk
Comment 2•21 years ago
|
||
Closing as WFM based on both comment 1 and my own testing. Reporter, download a
newer build!
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•