Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /editing/crashtests/replace-document-root-with-object-and-mo.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<script>
addEventListener("load", () => {
const object = document.querySelector("object[contenteditable]");
const mo = object.querySelector("mo");
const range = new Range();
document.replaceChildren();
range.insertNode(object);
object.replaceChild(mo, object.firstChild);
});
</script>
</head>
<object contenteditable>
<mo>
</mo>
</object>
</html>