Open Bug 2064077 Opened 2 days ago Updated 1 day ago

HTML parser should drop nodes that cannot be inserted into a document

Categories

(Core :: DOM: HTML Parser, defect)

defect

Tracking

()

Tracking Status
firefox156 --- affected

People

(Reporter: zcorpan, Unassigned)

References

Details

When a parser-created table element is moved to be the root element in a separate document, and the markup then contains something that would be foster-parented, the spec says to drop the foster-parented nodes on the floor. Gecko instead inserts them into the original document without foster parenting. Demo: https://software.hixie.ch/utilities/js/live-dom-viewer/saved/14824

Spec: https://github.com/whatwg/html/pull/12708
Test: https://github.com/web-platform-tests/wpt/pull/61396

Component: DOM: Core & HTML → DOM: HTML Parser
You need to log in before you can comment on or make changes to this bug.