summaryrefslogtreecommitdiffstats
path: root/editor/libeditor/crashtests/639736-1.xhtml
blob: 1aea3040e004793238d865ac5f27e97fd7e6963f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script>
function onLoad() {
  // For emulating the traditional behavior, collapse Selection to end of the
  // <td> which is the deepest last child of the <body>.
  getSelection().collapse(
    document.querySelector("td"),
    document.querySelector("td").childNodes.length
  );
  try {
    document.execCommand("removeformat");
  } catch(e) {}
  document.adoptNode(document.documentElement);
}
</script>
</head>
<body onload="onLoad();"><td contenteditable="true"/></body>
</html>