Files
sousa-gecko/testing/web-platform/tests/dom/ranges/Range-insertNode-multiple-document-children-crash.html
T
Martin Robinson 549d37243f Bug 2048431 [wpt PR 60691] - script: Run insert validations steps separately when inserting from the parser, a=testonly
Automatic update from web-platform-tests
script: Run insert validations steps separately when inserting from the parser

When inserting from the parser, the specification doesn't say to call
`insertBefore()` (as we were doing) which combines the validation and
insertion steps. Instead it requires that we run validation as a
separate, earlier, step and abort the insertion. This change makes the
parser more closely follow the specification in this way.

Signed-off-by: Martin Robinson <martin@abandonedwig.info>

--

wpt-commits: 8326488f2f477af0a7cfa9c20b6bb966b33c4bf1
wpt-pr: 60691
2026-07-10 09:19:17 +00:00

18 lines
390 B
HTML

<!DOCTYPE html>
<head>
<link rel="help" href="https://github.com/servo/servo/issues/20218">
</head>
<script>
onload = () => {
document.open();
try {
document.createRange().insertNode(document.createElement("a"));
document.createRange().insertNode(document.createElement("a"));
} finally {
document.close();
}
};
</script>