Backed out 2 changesets (bug 1943998) for causing wd failures @ phases.py CLOSED...
[gecko.git] / editor / libeditor / crashtests / 1158651.html
blob27278b5234bb1320b3427b276602aaab01cab834
1 <script>
2 onload = function() {
3 var testContainer = document.createElement("span");
4 testContainer.contentEditable = true;
5 document.body.appendChild(testContainer);
7 function queryFormatBlock(content)
9 testContainer.innerHTML = content;
10 while (testContainer.firstChild)
11 testContainer = testContainer.firstChild;
12 window.getSelection().collapse(testContainer, 0);
13 document.queryCommandValue('formatBlock');
16 queryFormatBlock('<ol>hello</ol>');
18 </script>