/[suikacvs]/www/test/html/entref/unknown-xhtml10-strict.xhtml
Suika

Contents of /www/test/html/entref/unknown-xhtml10-strict.xhtml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Dec 26 10:27:46 2005 UTC (20 years, 8 months ago) by wakaba
Branch: MAIN
New tests

1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
4 <head>
5 <title>Unknown HTML Character Entity Reference,
6 with XHTML 1.0 Strict DOCTYPE Declaration</title>
7 </head>
8 <body>
9 <h1>Unknown HTML Character Entity Reference, with XHTML 1.0 Strict
10 <code>DOCTYPE</code> Declaration</h1>
11
12
13 <h2>Test</h2>
14
15 <dl id="test-list">
16 <dt><code>&amp;unknown;</code> is rendered as</dt><dd>&unknown;</dd>
17 <dt><code>&amp;#xA9;</code> is rendered as</dt><dd>&#xA9;</dd>
18 </dl>
19
20 <p>The <code>innerHTML</code> of the list above is:</p>
21 <pre id="test-source"></pre>
22 <script type="text/javascript">
23 document.getElementById ('test-source').appendChild
24 (document.createTextNode (document.getElementById ('test-list').innerHTML));
25 </script>
26
27 <h2>Expected Result</h2>
28
29 <dl>
30 <dt><a href="http://www.w3.org/TR/2002/REC-xhtml1-20020801/#uaconf">Conforming XHTML 1.0 User Agent</a></dt>
31 <dt><a href="http://www.w3.org/TR/2001/REC-xhtml-modularization-20010410/conformance.html#s_conform_user_agent">Conforming XHTML Family User Agent</a></dt>
32 <dd>The character reference (later) is treated as a
33 <code>COPYRIGHT SIGN</code>.</dd>
34 <dd>A validating user agent will report a validity error
35 since the <code>unknown</code> entity is not declared.</dd>
36 <dd>A non-validating user agent will render the general
37 entity reference (former) as a sequence of nine characters:
38 <code>&amp;unknown;</code>.</dd>
39 </dl>
40
41 <h2>Discussion</h2>
42
43 <p>See a <a href="http://suika.fam.cx/gate/2005/sw/">SuikaWiki</a> article on <a href="http://suika.fam.cx/gate/2005/sw/XHTML/%E5%AE%9F%E4%BD%93%E5%8F%82%E7%85%A7">entity references in XHTML documents</a>.</p>
44
45 </body>
46 </html>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.24