/[suikacvs]/www/test/html/entref/unknown-external-subset.xhtml
Suika

Contents of /www/test/html/entref/unknown-external-subset.xhtml

Parent Directory Parent Directory | Revision Log Revision Log


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

1 wakaba 1.1 <!DOCTYPE html SYSTEM "unknown-external-subset-dtd.dtd">
2     <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
3     <head>
4     <title>Unknown HTML Character Entity Reference,
5     with Custom External Subset</title>
6     </head>
7     <body>
8     <h1>Unknown HTML Character Entity Reference, with Custom External Subset</h1>
9    
10     <p>Note: An external subset entity referenced from this document
11     by <code>SYSTEM</code> identifier declares the <code>unknown</code>
12     general entity.</p>
13    
14     <h2>Test</h2>
15    
16     <dl id="test-list">
17     <dt><code>&amp;unknown;</code> is rendered as</dt><dd>&unknown;</dd>
18     <dt><code>&amp;#xA9;</code> is rendered as</dt><dd>&#xA9;</dd>
19     </dl>
20    
21     <p>The <code>innerHTML</code> of the list above is:</p>
22     <pre id="test-source"></pre>
23     <script type="text/javascript">
24     document.getElementById ('test-source').appendChild
25     (document.createTextNode (document.getElementById ('test-list').innerHTML));
26     </script>
27    
28     <h2>Expected Result</h2>
29    
30     <dl>
31     <dt><a href="http://www.w3.org/TR/2002/REC-xhtml1-20020801/#uaconf">Conforming XHTML 1.0 User Agent</a></dt>
32     <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>
33     <dd>The character reference (later) is treated as a
34     <code>COPYRIGHT SIGN</code>.</dd>
35     <dd>A user agent that reads external entities will treat
36     the entity reference (former) as a <code>COPYRIGHT SIGN</code>.</dd>
37     <dd>A user agent that does not read the external entity in which
38     the entity declaration for the general entity <code>unknown</code>
39     will render it as a sequence of nine characters:
40     <code>&amp;unknown;</code>.</dd>
41     </dl>
42    
43     <h2>Discussion</h2>
44    
45     <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>
46    
47     </body>
48     </html>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24