-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Add tests for ParentNode#replaceChildren #22524
Conversation
This looks like a good start. We should probably have some tests covering mutation observers as well. And maybe with nodes moving between documents. |
Should I add same tests for |
Yeah, that might be good if they don't have any. Also, feel free to use |
Are you planning on testing mutation observers doing the right thing in this PR? Or do that separately? |
Oops, I forgot that 🤦♀️ I'll try that here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@smaug---- can you take a second look?
<script src="/resources/testharnessreport.js"></script> | ||
<script src="pre-insertion-validation-hierarchy.js"></script> | ||
<script> | ||
Node.prototype.replaceChildren = function (...args) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect you meant to remove this, right?
Tests: web-platform-tests/wpt#22524 Fixes #478. Closes #755 and closes #835.
Tests: web-platform-tests/wpt#22524 Fixes whatwg#478. Closes whatwg#755 and closes whatwg#835.
Relates to whatwg/dom#478 and whatwg/dom#851.
Closes #21810