|
Revision 1728, 0.8 kB
(checked in by nyarla, 6 years ago)
|
|
lang/javascript/document.write.dom: 要素の取得のバグを修正
|
-
Property svn:mime-type set to
application/xhtml+xml
|
| Line | |
|---|
| 1 | <?xml version="1.0" encoding="UTF-8"?>
|
|---|
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
|
|---|
| 3 | "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
|---|
| 4 | <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
|
|---|
| 5 | <head>
|
|---|
| 6 | <title>document.write hack</title>
|
|---|
| 7 | <script type="text/javascript" src="./document.write.dom.js"></script>
|
|---|
| 8 | </head>
|
|---|
| 9 | <body>
|
|---|
| 10 | <pre><script type="text/javascript"><![CDATA[
|
|---|
| 11 |
|
|---|
| 12 | document.write('<strong>document.write ');
|
|---|
| 13 | document.write('DOM version</strong>');
|
|---|
| 14 |
|
|---|
| 15 | document.write('\n\n');
|
|---|
| 16 |
|
|---|
| 17 | document.writeln('* item');
|
|---|
| 18 | document.writeln('* item');
|
|---|
| 19 | document.writeln('* item');
|
|---|
| 20 |
|
|---|
| 21 | document.writeln();
|
|---|
| 22 |
|
|---|
| 23 | document.write('<em>foo');
|
|---|
| 24 |
|
|---|
| 25 | ]]></script>
|
|---|
| 26 | <script type="text/javascript"><![CDATA[
|
|---|
| 27 |
|
|---|
| 28 | document.write('bar</em>');
|
|---|
| 29 |
|
|---|
| 30 | ]]></script>
|
|---|
| 31 | </pre>
|
|---|
| 32 | </body>
|
|---|
| 33 | </html>
|
|---|