summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/editing/crashtests/enableInlineTableEditing-after-updating-selection-range-cross-shadow-dom-boundary.html
blob: b248e03ea05fb85b89ab50e782d37ffec9075ea9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script>
"use strict";

document.addEventListener("DOMContentLoaded", () => {
  window.find("A");
  const range = document.createRange();
  getSelection().addRange(range);
  range.setEnd(document.querySelector("template").content, 0);
  document.execCommand("enableInlineTableEditing", false, "true");
});
</script>
<body>
<template>
</template>
A
<time contenteditable></time>
</body>
</html>