Skip to content

Align with DOM's children changed steps - #5131

Merged
annevk merged 1 commit into
masterfrom
annevk/dom-align
Dec 6, 2019
Merged

annevk merged 1 commit into
masterfrom
annevk/dom-align

Conversation

@annevk

@annevk annevk commented Dec 5, 2019 •

Copy link
Copy Markdown
Member

As indicated by whatwg/dom#800 and its tests, more than Text node changes are observed by consumers.


/form-elements.html ( diff )
/infrastructure.html ( diff )
/semantics.html ( diff )

As indicated by whatwg/dom#800 and its tests, more than Text node changes are observed by consumers.
@annevk annevk added the do not merge yet Pull request must not be merged per rationale in comment label Dec 5, 2019

@domenic domenic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Editorially LGTM but missing tests for the textarea change here.

@annevk

annevk commented Dec 5, 2019

Copy link
Copy Markdown
Member Author

Do you have a way to test that case, given the behavior?

@domenic

domenic commented Dec 5, 2019

Copy link
Copy Markdown
Member

Wow, OK, it is not obvious, but I think you're right that the difference is unobservable. There might be a way to test if you can run script while the textarea is still on the stack of open elements in some way? Maybe that's possible in the XML serialization? But otherwise I can't find any way to get the element's raw value out of sync with the child text content without also setting the dirty value flag. (Which is, presumably, an invariant the spec is trying to maintain.)

So no need for such tests, sorry about that.

@tkent-google tkent-google left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@annevk annevk removed the do not merge yet Pull request must not be merged per rationale in comment label Dec 6, 2019
@annevk
annevk merged commit 928f862 into master Dec 6, 2019
@annevk
annevk deleted the annevk/dom-align branch December 6, 2019 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants