content/test/reftest/bug439965.html

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:f70e4282e712
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script>
5 function doe(aEl) {
6 aEl.style.display = '';
7 var doc = aEl.contentDocument;
8 doc.designMode = 'on';
9
10 try {
11 doc.execCommand("insertHTML",false,'some text');
12 } catch(e) {
13 document.getElementById('result').innerHTML = e;
14 }
15 }
16 </script>
17
18 <iframe onload="doe(this)" style="display:none"></iframe><br>
19 <pre id="result" style="background-color: red; width: 300px; white-space: -moz-pre-wrap;"></pre>
20 </body>
21 </html>

mercurial