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>
2 <head>
3 <script>
5 function X() { dump("X\n"); }
6 function Y() { dump("Y\n"); }
8 function boom()
9 {
10 dump("Start9\n");
12 var div = document.getElementById("v");
14 var textNode = document.createTextNode(String.fromCharCode(0xDAAF)); // high surrogate
15 div.appendChild(textNode);
17 document.addEventListener("DOMCharacterDataModified", X, true);
18 textNode.data += 'B';
19 document.removeEventListener("DOMCharacterDataModified", X, true);
21 document.addEventListener("DOMAttrModified", Y, true);
22 textNode.data += String.fromCharCode(0xDF53); // low surrogate
23 document.removeEventListener("DOMAttrModified", Y, true);
24 }
26 </script>
27 </head>
29 <body onload="boom();"><div id="v"></div></body>
31 </html>