content/test/reftest/bug439965-ref.html

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

mercurial