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
18 lines
390 B
HTML
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>
|