editor/libeditor/base/crashtests/713427-2.xhtml

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <html xmlns="http://www.w3.org/1999/xhtml">
     2 <head>
     3 <script>
     4 <![CDATA[
     6 function boom()
     7 {
     8   while (document.documentElement.firstChild) {
     9     document.documentElement.removeChild(document.documentElement.firstChild);
    10   }
    12   var td = document.createElementNS("http://www.w3.org/1999/xhtml", "td");
    13   td.setAttributeNS(null, "contenteditable", "true");
    14   (document.documentElement).appendChild(td);
    15   var head = document.createElementNS("http://www.w3.org/1999/xhtml", "head");
    16   (document.documentElement).appendChild(head);
    18   head.appendChild(td);
    19 }
    21 window.addEventListener("load", boom, false);
    23 ]]>
    24 </script>
    25 </head>
    27 <body></body>
    28 </html>

mercurial