Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use DOM's "replace all" primitive in document.open() #3598

Merged
merged 3 commits into from
Apr 30, 2018

Conversation

annevk
Copy link
Member

@annevk annevk commented Mar 28, 2018

This makes it clearer what is expected with respect to mutation observers.

This also removes the mutation events comment, because as far as I can tell there's no way to observe whether they are fired if all event listeners are removed per the requirement two steps prior.


/dynamic-markup-insertion.html ( diff )

annevk added 2 commits March 28, 2018 13:42
This makes it clearer what is expected with respect to mutation observers.

This also removes the mutation events comment, because as far as I can tell there's no way to observe whether they are fired if all event listeners are removed per the requirement two steps prior.
@domenic
Copy link
Member

domenic commented Apr 26, 2018

Since mutation events bubble, you could observe them by adding a listener to window, right?

@annevk annevk added the do not merge yet Pull request must not be merged per rationale in comment label Apr 26, 2018
@annevk
Copy link
Member Author

annevk commented Apr 26, 2018

That's very true, thanks!

annevk added a commit to web-platform-tests/wpt that referenced this pull request Apr 27, 2018
@annevk annevk removed the do not merge yet Pull request must not be merged per rationale in comment label Apr 27, 2018
@annevk
Copy link
Member Author

annevk commented Apr 27, 2018

I wrote tests and I have a follow-up issue at whatwg/dom#640. It still seems nice to start using "replace all" here, just to make it easier to find all places that use that primitive.

@domenic domenic added the clarification Standard could be clearer label Apr 30, 2018
@domenic domenic merged commit 423c664 into master Apr 30, 2018
@domenic domenic deleted the annevk/document-open-replace-all branch April 30, 2018 16:44
annevk added a commit to web-platform-tests/wpt that referenced this pull request Apr 30, 2018
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request May 2, 2018
…s, a=testonly

Automatic update from web-platform-testsHTML: document.open() and mutation events

See whatwg/html#3598.

--

wpt-commits: e4b690a768b15c0b2aab558e97454385ec7164e1
wpt-pr: 10680
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clarification Standard could be clearer
Development

Successfully merging this pull request may close these issues.

2 participants