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)

defect
Not set
normal

Tracking

()

RESOLVED INVALID
Tracking Status
firefox43 --- affected

People

(Reporter: hunboy, Unassigned)

Details

Attachments

(1 file)

Attached file XHTML2.0 testcase
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.
Keywords: dev-doc-needed
Attachment #8661980 - Attachment mime type: text/html → application/xhtml+xml
If you want xhtml being parsed as xml, use the right mimetype, application/xhtml+xml
well -> RESOLVED sry for bugspam
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
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.

Attachment

General

Created:
Updated:
Size: