5 function X() { dump("X\n"); }
6 function Y() { dump("Y\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);
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);
29 <body onload=
"boom();"><div id=
"v"></div></body>