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

document.open()'s mutation event suppression #640

Open
annevk opened this issue Apr 27, 2018 · 0 comments
Open

document.open()'s mutation event suppression #640

annevk opened this issue Apr 27, 2018 · 0 comments
Labels
interop Implementations are not interoperable with each other

Comments

@annevk
Copy link
Member

annevk commented Apr 27, 2018

document.open(), and various other places, such as the HTML parser, suppress mutation events. Unfortunately (and per usual) it differs across browsers. Chrome/Edge/Safari appear to set a one-off flag, whereas Firefox will only suppress them between document.open() and document.close().

That is, if you add frame.contentDocument.body.appendChild(document.createElement("x")); after the close() call in web-platform-tests/wpt#10680, Firefox will "fail" the test.

If we ever define them in detail, see #305, we should make sure this nuance is covered.

@annevk annevk added the interop Implementations are not interoperable with each other label Apr 27, 2018
@annevk annevk changed the title document.open()'s mutation event suprression document.open()'s mutation event suppression Apr 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interop Implementations are not interoperable with each other
Development

No branches or pull requests

1 participant