mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 10:15:41 +00:00
4ae455cdc5
These were generated with |./mach eslint --fix xpcom| with the .eslintignore and xpcom/tests/unit/.eslintrc.js changes from the next patch. MozReview-Commit-ID: 8pKkICSK3JQ --HG-- extra : rebase_source : bbc98050928f27160d8ca63d38aa0c383be95878
31 lines
708 B
HTML
31 lines
708 B
HTML
<html>
|
|
<head>
|
|
<script>
|
|
|
|
function X() { dump("X\n"); }
|
|
function Y() { dump("Y\n"); }
|
|
|
|
function boom() {
|
|
dump("Start9\n");
|
|
|
|
var div = document.getElementById("v");
|
|
|
|
var textNode = document.createTextNode(String.fromCharCode(0xDAAF)); // high surrogate
|
|
div.appendChild(textNode);
|
|
|
|
document.addEventListener("DOMCharacterDataModified", X, true);
|
|
textNode.data += "B";
|
|
document.removeEventListener("DOMCharacterDataModified", X, true);
|
|
|
|
document.addEventListener("DOMAttrModified", Y, true);
|
|
textNode.data += String.fromCharCode(0xDF53); // low surrogate
|
|
document.removeEventListener("DOMAttrModified", Y, true);
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
|
|
<body onload="boom();"><div id="v"></div></body>
|
|
|
|
</html>
|