gecko/js/xpconnect/crashtests/512815-1.html

22 lines
488 B
HTML
Raw Normal View History

2010-10-11 09:55:22 -07:00
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">
function boom() {
var ns = document.createElementNS("http://www.w3.org/1999/xhtml", "script");
var nt = document.createTextNode("bang();");
ns.appendChild(nt);
document.getElementById("v").appendChild(ns);
}
function bang()
{
var scriptElement = document.getElementById("v").lastElementChild;
"" + scriptElement;
}
</script>
</head>
<body onload="boom();"><div id="v"></div></body>
</html>