/[suikacvs]/www/test/dom/window/doc/set-document-1.html
Suika

Diff of /www/test/dom/window/doc/set-document-1.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by wakaba, Sun Jan 13 05:38:56 2008 UTC revision 1.2 by wakaba, Sun Jan 13 05:54:24 2008 UTC
# Line 20  Line 20 
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    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24