mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
22 lines
488 B
HTML
22 lines
488 B
HTML
|
<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>
|