summaryrefslogtreecommitdiffstats
path: root/editor/libeditor/crashtests/1699866.html
blob: f8d700ec9c7e0ccddd39fe1138e9c9bb655406d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<script>
window.onload = () => {
  const font = document.querySelector("font");
  // For emulating traditional behavior, collapse Selection to end of the
  // text node in the <font>.
  getSelection().collapse(font.lastChild, font.lastChild.length);
  const meta = document.querySelector("meta");
  meta.style.setProperty(
    "text-decoration",
    "overline underline line-through"
  );
  meta.appendChild(font);
  document.execCommand("selectAll");
  getSelection().extend(meta, 0);
  document.execCommand("underline");
}
</script>
<ins contenteditable>
a
<meta></meta>
<font>
</font></ins></body>