Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 <html class="reftest-wait">
2 <head>
4 <script>
6 function init()
7 {
8 var ww = document.getElementById("ww");
9 var inp = document.getElementById("inp");
11 document.addEventListener("DOMNodeInserted", u, false);
13 document.body.appendChild(ww);
15 function u()
16 {
17 document.removeEventListener("DOMNodeInserted", u, false);
18 ww.removeChild(inp);
19 document.documentElement.removeAttribute("class");
20 }
21 }
23 </script>
25 </head>
27 <body onload="init()"><div id="ww"><input type="text" value="inputtext" id="inp">moretext</div></body>
29 </html>