Closed
Bug 1205391
Opened 9 years ago
Closed 9 years ago
in XHTML2.0 if the div is inside a paragraph the DOM parser builds a wrong DOM tree
Categories
(Core :: DOM: HTML Parser, defect)
Core
DOM: HTML Parser
Tracking
()
RESOLVED
INVALID
Tracking | Status | |
---|---|---|
firefox43 | --- | affected |
People
(Reporter: hunboy, Unassigned)
Details
Attachments
(1 file)
365 bytes,
application/xhtml+xml
|
Details |
in XHTML2.0 if the div is inside a paragraph the DOM parser builds a wrong DOM tree
<p>
<div></div>
</p>
parses as
<p></p>
<div></div>
<p></p>
This is normal in html5 because div closes the paragraph, but not in xhtml2.0, it must be a valid xml document and follow the document tree.
Reporter | ||
Updated•9 years ago
|
Keywords: dev-doc-needed
Updated•9 years ago
|
Attachment #8661980 -
Attachment mime type: text/html → application/xhtml+xml
Comment 1•9 years ago
|
||
If you want xhtml being parsed as xml, use the right mimetype,
application/xhtml+xml
Reporter | ||
Comment 2•9 years ago
|
||
well -> RESOLVED
sry for bugspam
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
Updated•9 years ago
|
Keywords: dev-doc-needed
Updated•9 years ago
|
Resolution: WORKSFORME → INVALID
Component: DOM: Core & HTML → HTML: Parser
You need to log in
before you can comment on or make changes to this bug.
Description
•