Skip to content

Implement embedded content category per WHATWG spec#130

Open
iainh wants to merge 1 commit intokristoff-it:mainfrom
iainh:embed_content_category
Open

Implement embedded content category per WHATWG spec#130
iainh wants to merge 1 commit intokristoff-it:mainfrom
iainh:embed_content_category

Conversation

@iainh
Copy link

@iainh iainh commented Dec 28, 2025

Add the seventh content category (embedded) to the Categories struct and enable it on all embedded content elements: img, video, audio, iframe, embed, object, picture, svg, math, canvas.

Also adds phrasing category to svg and math elements, as the spec requires embedded content to be a subset of phrasing content.

Spec: https://html.spec.whatwg.org/multipage/dom.html#embedded-content-2

Add the seventh content category (embedded) to the Categories struct
and enable it on all embedded content elements: img, video, audio,
iframe, embed, object, picture, svg, math, canvas.

Also adds phrasing category to svg and math elements, as the spec
requires embedded content to be a subset of phrasing content.

Spec: https://html.spec.whatwg.org/multipage/dom.html#embedded-content-2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant