Chromium Code Reviews
DescriptionHTMLTreeBuilderSimulator: Element created inside HTMLIntegrationPoint should be HTMLElement
Per the HTML spec, "If the adjusted current node is an HTML integration point and the token is a start tag" [1],
we should "process the token according to the rules given in the section corresponding to the current insertion mode in HTML content",
which should "insert an HTML element" [2].
[1] https://html.spec.whatwg.org/multipage/syntax.html#tree-construction
[2] https://html.spec.whatwg.org/multipage/syntax.html#insert-an-html-element
HTMLTreeBuilder already conforms to the spec.
This CL fixes the HTMLTreeBuilderSimulator so that it would also respect the spec behaviour:
The child element of HTMLIntegrationPoint element should be a HTML element, and
the grand child element of HTMLIntegrationPoint element should also be a HTML element if the
element doesn't start foreignContent.
BUG=411226
Patch Set 1 #
Total comments: 2
Messages
Total messages: 12 (8 generated)
|
|||||||||||||||||||||||||||||||||||||