root/lang/javascript/document.write.dom/index.xhtml @ 30865

Revision 23851, 0.8 kB (checked in by drry, 5 years ago)
  • fixed and removed subversion properties.
  • et cetera.
  • 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="application/javascript" src="./document.write.dom.js"/>
8</head>
9<body>
10<pre><script type="application/javascript"><![CDATA[
11
12document.write('<strong>document.write ');
13document.write('DOM version</strong>\n\n<em>foobar</em>');
14
15document.write('\n\n');
16
17document.writeln('* item');
18document.writeln('* item');
19document.writeln('* item');
20
21document.writeln();
22
23document.write('<em>foo');
24
25]]></script>
26<script type="application/javascript"><![CDATA[
27
28document.write('bar</em>');
29
30]]></script>
31</pre>
32</body>
33</html>
Note: See TracBrowser for help on using the browser.