Repository navigation
Conversation
commit: |
cowboyd
marked this pull request as ready for review
November 30, 2026 15:50
cowboyd
force-pushed
the
dom-html-serialization
branch
from
December 1, 2026 18:17
85257f6 to
b111e1c
Compare
cowboyd
force-pushed
the
wpt-document-lifecycle
branch
from
December 1, 2026 18:17
9943043 to
5985ac5
Compare
cowboyd
force-pushed
the
dom-html-serialization
branch
from
December 2, 2026 14:58
b111e1c to
ff0de0c
Compare
cowboyd
force-pushed
the
wpt-document-lifecycle
branch
from
December 2, 2026 17:26
7f583c1 to
c233ece
Compare
cowboyd
force-pushed
the
dom-html-serialization
branch
from
December 2, 2026 17:26
ff0de0c to
129b203
Compare
cowboyd
marked this pull request as draft
December 2, 2026 22:21
cowboyd
force-pushed
the
wpt-document-lifecycle
branch
5 times, most recently
from
December 3, 2026 16:44
7bb1c3a to
c58e5c2
Compare
cowboyd
force-pushed
the
dom-html-serialization
branch
from
December 3, 2026 19:05
129b203 to
dbc5753
Compare
cowboyd
marked this pull request as ready for review
December 3, 2026 19:06
dreyfus92
reviewed
Dec 3, 2026
| return this.nodeName; | ||
| } | ||
|
|
||
| get innerHTML(): string { |
Member
There was a problem hiding this comment.
with only a getter, el.innerHTML = ... from strict code now throws a generic TypeError, where before it silently set an own prop. vue, solid and preact's dangerouslySetInnerHTML all assign it. is the setter coming soon, or worth a setter that throws a clearer NotSupportedError until then?
Contributor
Author
There was a problem hiding this comment.
Yes, we will need to have them eventually. We are actually already using parse5 in the WPT to parse the html files and build our DOM, so it isn't even that far off.
However, I know that @natemoo-re is also cooking something with html parsing as well, but we could wire it in pretty easily.
cowboyd
force-pushed
the
dom-html-serialization
branch
from
December 4, 2026 03:33
dbc5753 to
f97fb4f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Some WPT test cases use the
outerHTMLproperty to generate the test names. Since we'll needinnerHTMLandouterHTMLeventually, this adds readonly support for them.Adds
Element.innerHTMLandElement.outerHTMLserialization by usingparse5which is already a development dependency, but moves to be a runtime dependency.Focus and input tests this supports
html/interaction/focus/tab-table-caption.htmlusesouterHTMLto build its test names. With the lifecycle and keyboard rungs, all 12 cases across the two caption-side variants now reach their focus-navigation assertions.inert/inert-on-non-html.htmlusesinnerHTML.trim()to name 27 cases checking which content remains selectable wheninertis applied to HTML or non-HTML elements and their ancestors.getTargetRanges() returns correct range and cleared after dispatch.case ininput-events/input-events-get-target-ranges.htmlreadsinnerHTMLbefore and after deletion to check the DOM contents alongside thebeforeinput/inputtarget ranges.editing/other/insert-br-tag-on-text-node-removal-with-non-editable-elements.htmlusesinnerHTMLin three cases checking the resulting structure and placeholder<br>insertion after deleting text before, between, or after noneditable children.Type of change
Checklist
pnpm test)pnpm format)AI-generated code disclosure