<!DOCTYPE html>
<head>
<title>This tests if inserting content as body sibling triggers assertion.</title>
</head>
<div>Pass if no assert or crash in debug.</div>
<script>
	if (window.testRunner)
    	testRunner.dumpAsText();

  	var iframe = document.createElement("iframe");
  	document.head.parentNode.insertBefore(iframe, document.head.nextSibling);
  	document.execCommand("SelectAll");
  	document.designMode = "on";
  	document.execCommand("JustifyCenter", false, null);
</script>
