summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/262998-1.html
blob: 79eccd7ff767a53aae5065e9d1121bd01eeb23f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE HTML>
<html class="reftest-wait">
<body onload="setTimeout(doTest,0);">

<iframe id="edit"  style="display:none;" src=""></iframe>

<script>
  var x=document.getElementById('edit');
  function doTest(){
    x.style.display='block';
    x.contentDocument.body.innerHTML="This is a test";
    x.contentDocument.designMode='on';
    x.contentDocument.execCommand("selectAll", false, "");
    x.contentDocument.execCommand("bold", false, "");
    x.contentDocument.execCommand("justifyCenter", false, "");
    x.contentWindow.getSelection().removeAllRanges();
    document.documentElement.className = "";
  }
</script>
</body>
</html>