Skip to content

Implement create-an-element-for-a-token algorithm #19392

@jdm

Description

@jdm

create_html_element implements https://dom.spec.whatwg.org/#concept-create-element and is called from the parser (via Element::create in Sink::create_element), but the HTML specification defines https://html.spec.whatwg.org/multipage/parsing.html#create-an-element-for-the-token which is used by the HTML parsing algorithms. Steps 6 and 9 are particularly relevant for dealing with #19307 (comment).

Metadata

Metadata

Assignees

Labels

A-content/domInteracting with the DOM from web content

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions