summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/editing/crashtests/replace-document-root-with-object-and-mo.html
blob: bdad541422833382c831de19bc0c1973006448c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!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>