jruderman%hmc.edu bb6445726f Add null checks in nsAutoSelectionReset to fix bug 407256. Patch by Chris Pearce, r+sr=peterv, a=blocking1.9+.
git-svn-id: svn://10.0.0.236/trunk@242616 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-08 04:11:24 +00:00

24 lines
411 B
HTML

<html>
<head>
<script type="text/javascript">
function boom()
{
document.addEventListener("DOMNodeInserted", x, false);
function x()
{
document.removeEventListener("DOMNodeInserted", x, false);
document.execCommand("insertParagraph", false, "");
}
document.execCommand("insertorderedlist", false, "");
}
</script>
</head>
<body contenteditable="true" onload="boom()"></body>
</html>