blob: ed280dd3d4263d1610ce9ec69f2fc09560258c10 [file] [log] [blame]
<p>
Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=15942">http://bugs.webkit.org/show_bug.cgi?id=15942</a>
REGRESSION: Selecting "Edit Html" tab in Blogger causes crash (Assertion failed: isRange())</i>.
</p>
<script>
if (window.testRunner)
testRunner.dumpAsText();
function prepare()
{
var target = document.getElementById('target');
var doc = target.contentDocument;
target.contentWindow.getSelection().setPosition(doc.body, 0);
target.focus();
test();
}
function test()
{
var target = document.getElementById('target');
target.style.display = 'none';
target.contentDocument.body.innerHTML;
}
</script>
<p>
<iframe onload="prepare()" id="target" src="data:text/html,&lt;body contenteditable&gt;"></iframe>
</p>