20 |
var body = html.appendChild (doc.createElementNS ('http://www.w3.org/1999/xhtml', 'body')); |
var body = html.appendChild (doc.createElementNS ('http://www.w3.org/1999/xhtml', 'body')); |
21 |
body.appendChild (doc.createElementNS ('http://www.w3.org/1999/xhtml', 'p')) |
body.appendChild (doc.createElementNS ('http://www.w3.org/1999/xhtml', 'p')) |
22 |
.textContent = 'New document.'; |
.textContent = 'New document.'; |
23 |
|
body.onload = "document.getElementById ('atonload').textContent += '\nonload: ' + new Date ();"; |
24 |
var button = body.appendChild (doc.createElementNS ('http://www.w3.org/1999/xhtml', 'p')) |
var button = body.appendChild (doc.createElementNS ('http://www.w3.org/1999/xhtml', 'p')) |
25 |
.appendChild (doc.createElementNS ('http://www.w3.org/1999/xhtml', 'button')); |
.appendChild (doc.createElementNS ('http://www.w3.org/1999/xhtml', 'button')); |
26 |
button.textContent = 'alert (window.xxxxx)'; |
button.textContent = 'alert (window.xxxxx)'; |
27 |
button.onclick = 'alert (window.xxxxx)'; |
button.onclick = 'alert (window.xxxxx)'; |
28 |
|
body.appendChild (document.createElementNS ('http://www.w3.org/1999/xhtml', 'pre')) |
29 |
|
.setAttributeNS (null, 'id', 'atonload'); |
30 |
setDocument (doc); |
setDocument (doc); |
31 |
"></p> |
"></p> |
32 |
|
|