1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/test/reftest/bug439965.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,21 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 +<body> 1.7 +<script> 1.8 +function doe(aEl) { 1.9 +aEl.style.display = ''; 1.10 +var doc = aEl.contentDocument; 1.11 +doc.designMode = 'on'; 1.12 + 1.13 +try { 1.14 +doc.execCommand("insertHTML",false,'some text'); 1.15 +} catch(e) { 1.16 + document.getElementById('result').innerHTML = e; 1.17 +} 1.18 +} 1.19 +</script> 1.20 + 1.21 +<iframe onload="doe(this)" style="display:none"></iframe><br> 1.22 +<pre id="result" style="background-color: red; width: 300px; white-space: -moz-pre-wrap;"></pre> 1.23 +</body> 1.24 +</html>