summaryrefslogtreecommitdiffstats
path: root/dom/tests/reftest/bug439965.html
blob: da3f90ebe235cd402b008c68560eeb0e638578eb (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>
<body>
<script>
function doe(aEl) {
aEl.style.display = '';
var doc = aEl.contentDocument;
doc.designMode = 'on';

try {
doc.execCommand("insertHTML",false,'some text');
} catch(e) {
  document.getElementById('result').innerHTML = e;
}
}
</script>

<iframe onload="doe(this)" style="display:none"></iframe><br>
<pre id="result" style="background-color: red; width: 300px; white-space: -moz-pre-wrap;"></pre>
</body>
</html>