/[suikacvs]/test/html-webhacc/error-description-source.xml
Suika

Diff of /test/html-webhacc/error-description-source.xml

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

revision 1.35 by wakaba, Sat Aug 16 08:37:12 2008 UTC revision 1.42 by wakaba, Sun Aug 31 13:28:12 2008 UTC
# Line 3  Line 3 
3      xmlns:d="http://suika.fam.cx/~wakaba/archive/2007/wdcc-desc/"      xmlns:d="http://suika.fam.cx/~wakaba/archive/2007/wdcc-desc/"
4      id="error-description">      id="error-description">
5  <head>  <head>
6  <title xml:lang="en">Description of Errors &#x2014;  <base href="cc/"/>
7  Web Document Conformance Checker (BETA)</title>  <title xml:lang="en">Description of Errors &#x2014; WebHACC (β)</title>
8  <link rel="stylesheet" href="cc-style"/>  <title xml:lang="ja">誤りの説明 &#x2014; WebHACC (β)</title>
9    <link rel="stylesheet" href="../cc-style"/>
10  <link rel="license" href="#license"/>  <link rel="license" href="#license"/>
11  </head>  </head>
12  <body>  <body>
13  <h1>Description of Errors</h1>  <header>
14    <h1><a href="../cc-about"><abbr title="Web Hypertext Application Conformance Checker (β)"><img src="../icons/title" alt="WebHACC"/></abbr></a></h1>
15    <h2>Description of Errors</h2>
16    </header>
17    
18    <d:cat name="WebHACC:Title">
19      <d:text xml:lang="en">WebHACC (β)</d:text>
20    </d:cat>
21    
22    <d:cat name="WebHACC:Heading">
23      <d:text xml:lang="en">
24        <a href="../error-description#WebHACC:Heading" rel="help"><abbr title="Web Hypertext Application Conformance Checker (β)"><img src="../icons/title" alt="WebHACC"/></abbr></a>
25      </d:text>
26      <d:text xml:lang="ja">
27        <a href="../error-description#WebHACC:Heading" rel="help"><abbr title="Web ハイパーテキスト応用適合性検査器 (β)"><img src="../icons/title" alt="WebHACC"/></abbr></a>
28      </d:text>
29      <d:desc xml:lang="en">
30        <p><a href="./#input"><abbr title="Web Hypertext Application Conformance Checker">WebHACC</abbr></a>
31        is a <em>conformance checker</em> (or validator) for Web documents,
32        supporting <a href="../standards">latest Web standards</a> including
33        <a href="http://whatwg.org/html5"><abbr title="Hypertext Markup Language">HTML</abbr>5</a>,
34        <a href="urn:ietf:rfc:4287">Atom 1.0</a>,
35        <a href="http://www.w3.org/Style/CSS/current-work"><abbr title="Cascading Style Sheets">CSS</abbr>3</a>.</p>
36    
37        <p><strong><a href="./#input">Check your document</a></strong>, or
38        <a href="../cc-about">learn more about
39        <abbr title="Web Hypertext Application Conformance Checker">WebHACC</abbr></a>.</p>
40      </d:desc>
41      <d:desc xml:lang="ja">
42        <p><a href="./#input"><abbr title="Web ハイパーテキスト応用適合性検査器">WebHACC</abbr></a>
43        は、 Web 文書のための<em>適合性検査器</em> (妥当性検証器) です。
44        <a href="http://whatwg.org/html5"><abbr title="Hypertext Markup Language">HTML</abbr>5</a>、
45        <a href="urn:ietf:rfc:4287">Atom 1.0</a>、
46        <a href="http://www.w3.org/Style/CSS/current-work"><abbr title="Cascading Style Sheets">CSS</abbr>3</a>
47        などの<a href="../standards">最新の Web 標準</a>に対応しています。</p>
48    
49        <p><strong><a href="./#input">文書を検査する</a></strong></p>
50    
51        <p><a href="../cc-about"><abbr title="Web ハイパーテキスト応用適合性検査器">WebHACC</abbr>
52        の詳細</a></p>
53      </d:desc>
54    </d:cat>
55    
56  <section id="character-encoding-layer">  <section id="character-encoding-layer">
57  <h2>Character Encoding Layer Errors</h2>  <h2>Character Encoding Layer Errors</h2>
# Line 156  Web Document Conformance Checker (BETA)< Line 198  Web Document Conformance Checker (BETA)<
198  </d:item>  </d:item>
199    
200  <d:item name="charset label detected"  <d:item name="charset label detected"
     class="format-charset warning"  
201      modules="HTML::Parser">      modules="HTML::Parser">
202    <d:message xml:lang="en">While parsing the document as    <d:message xml:lang="en">While parsing the document as
203    <code><var>{text}</var></code>, a character encoding declaration specifying    <code><var>{text}</var></code>, a character encoding declaration specifying
# Line 204  Web Document Conformance Checker (BETA)< Line 245  Web Document Conformance Checker (BETA)<
245  <section id="html5-tokenize-error">  <section id="html5-tokenize-error">
246  <h2>HTML5 Parse Errors in Tokenization Stage</h2>  <h2>HTML5 Parse Errors in Tokenization Stage</h2>
247    
 <d:item name="after html"  
     class="parse-error">  
   <d:message xml:lang="en">Tag <code>&lt;<var>$0</var>&gt;</code>  
   is not allowed after the end tag <code>&lt;/html></code>.</d:message>  
   <d:desc xml:lang="en">  
     <p>The start or end tag of an element appears after the  
     <code>html</code> element has been closed.  The document is  
     non-conforming.</p>  
   
     <p>Any content of the document other than comments  
     must be put into the <code>html</code> element.</p>  
   </d:desc>  
 </d:item>  
   
 <d:item name="after body"  
     class="parse-error">  
   <d:message xml:lang="en">Tag <code>&lt;<var>$0</var>&gt;</code>  
   is not allowed after the end tag <code>&lt;/body></code>.</d:message>  
   <d:desc xml:lang="en">  
     <p>The start or end tag of an element appears after the  
     <code>body</code> element has been closed.  The document is  
     non-conforming.</p>  
   
     <p>Any content of the document other than <code>head</code>  
     contents and comments must be put into the <code>body</code>  
     element.</p>  
   </d:desc>  
 </d:item>  
   
248  <d:item name="bad attribute name"  <d:item name="bad attribute name"
     class="tokenize-error"  
249      modules="HTML::Parser">      modules="HTML::Parser">
250    <d:message xml:lang="en">Attribute name cannot contain characters    <d:message xml:lang="en">Attribute name cannot contain characters
251    <code>"</code>, <code>'</code>, and <code>=</code>.</d:message>    <code>"</code>, <code>'</code>, and <code>=</code>.</d:message>
252  </d:item>  </d:item>
253    
254  <d:item name="bad attribute value"  <d:item name="bad attribute value"
     class="tokenize-error"  
255      modules="HTML::Parser">      modules="HTML::Parser">
256    <d:message xml:lang="en">Attribute value must be quoted by <code>"</code>    <d:message xml:lang="en">Attribute value must be quoted by <code>"</code>
257    or <code>'</code> if it contains a <code>"</code>, <code>'</code>, or    or <code>'</code> if it contains a <code>"</code>, <code>'</code>, or
258    <code>=</code> character.</d:message>    <code>=</code> character.</d:message>
259      <d:desc xml:lang="en">
260        <p>In an unquoted attribute value, a character <code>"</code>
261        (<code>U+0022</code> <code class="charname">QUOTATION MARK</code>),
262        <code>'</code> (<code>U+0026</code>
263        <code class="charname">APOSTROPHE</code>), or <code>=</code>
264        (<code>U+003D</code> <code class="charname">EQUAL SIGN</code>)
265        is contained.  These characters are not allowed in unquoted attribute
266        values, since they are used to quote attribute values or to separate
267        attribute name and value.</p>
268    
269        <p>This error is also raised if one try to use empty attribute
270        value like <code class="html bad example">&lt;foo bar= baz=></code>;
271        in this example, <code class="html bad example">baz=</code> is
272        treated as an invalid attribute value for the attribute
273        <code class="html bad example">bar</code>, not as another attribute.</p>
274      </d:desc>
275  </d:item>  </d:item>
276    
277  <d:item name="bare ero"  <d:item name="bare ero"
     class="tokenize-error"  
278      modules="HTML::Parser">      modules="HTML::Parser">
279    <d:message xml:lang="en">The <code>&amp;</code> character must    <d:message xml:lang="en">The <code>&amp;</code> character must
280    be escaped as <code class="html example">&amp;amp;</code>.</d:message>    be escaped as <code class="html example">&amp;amp;</code>.</d:message>
# Line 287  Web Document Conformance Checker (BETA)< Line 312  Web Document Conformance Checker (BETA)<
312  </d:item>  </d:item>
313    
314  <d:item name="bare etago"  <d:item name="bare etago"
     class="tokenize-error"  
315      modules="HTML::Parser">      modules="HTML::Parser">
316    <d:message xml:lang="en">A <code>&lt;/</code> string is not followed    <d:message xml:lang="en">A <code>&lt;/</code> string is not followed
317    by a tag name.</d:message><!-- </ EOF -->    by a tag name.</d:message><!-- </ EOF -->
# Line 311  Web Document Conformance Checker (BETA)< Line 335  Web Document Conformance Checker (BETA)<
335  </d:item>  </d:item>
336    
337  <d:item name="bare stago"  <d:item name="bare stago"
     class="tokenize-error"  
338      modules="HTML::Parser">      modules="HTML::Parser">
339    <d:message xml:lang="en">A <code>&lt;</code> character is not followed    <d:message xml:lang="en">A <code>&lt;</code> character is not followed
340    by tag name or by a <code>!</code> character.</d:message>    by tag name or by a <code>!</code> character.</d:message>
# Line 328  Web Document Conformance Checker (BETA)< Line 351  Web Document Conformance Checker (BETA)<
351  </d:item>  </d:item>
352    
353  <d:item name="bare nero"  <d:item name="bare nero"
     class="tokenize-error"  
354      modules="HTML::Parser">      modules="HTML::Parser">
355    <d:message xml:lang="en">The decimal representation of the code position    <d:message xml:lang="en">The decimal representation of the code position
356    of a character must be specified after <code>&amp;#</code>.</d:message>    of a character must be specified after <code>&amp;#</code>.</d:message>
# Line 362  Web Document Conformance Checker (BETA)< Line 384  Web Document Conformance Checker (BETA)<
384  </d:item>  </d:item>
385    
386  <d:item name="bare hcro"  <d:item name="bare hcro"
     class="tokenize-error"  
387      modules="HTML::Parser">      modules="HTML::Parser">
388    <d:message xml:lang="en">The hexadecimal representation of the code position    <d:message xml:lang="en">The hexadecimal representation of the code position
389    of a character must be specified after <code>&amp;#x</code>.</d:message>    of a character must be specified after <code>&amp;#x</code>.</d:message>
# Line 385  Web Document Conformance Checker (BETA)< Line 406  Web Document Conformance Checker (BETA)<
406  </d:item>  </d:item>
407    
408  <d:item name="bogus comment"  <d:item name="bogus comment"
     class="tokenize-error"  
409      modules="HTML::Parser">      modules="HTML::Parser">
410    <d:message xml:lang="en">String <code>&lt;!</code> is not followed    <d:message xml:lang="en">String <code>&lt;!</code> is not followed
411    by <code>--</code>.</d:message>    by <code>--</code>.</d:message>
# Line 420  Web Document Conformance Checker (BETA)< Line 440  Web Document Conformance Checker (BETA)<
440  </d:item>  </d:item>
441    
442  <d:item name="bogus end tag"  <d:item name="bogus end tag"
     class="tokenize-error"  
443      modules="HTML::Parser">      modules="HTML::Parser">
444    <d:message xml:lang="en">String <code>&lt;/</code> is not followed    <d:message xml:lang="en">String <code>&lt;/</code> is not followed
445    by tag name.</d:message><!-- </ non-name-start-char-non-EOF -->    by tag name.</d:message><!-- </ non-name-start-char-non-EOF -->
# Line 443  Web Document Conformance Checker (BETA)< Line 462  Web Document Conformance Checker (BETA)<
462  </d:item>  </d:item>
463    
464  <d:item name="C1 character reference"  <d:item name="C1 character reference"
     class="tokenize-error"  
465      modules="HTML::Parser">      modules="HTML::Parser">
466    <d:message xml:lang="en">Character reference to    <d:message xml:lang="en">Character reference to
467    <code><var>{text}</var></code> is not allowed.</d:message>    <code><var>{text}</var></code> is not allowed.</d:message>
468  </d:item>  </d:item>
469    
470  <d:item name="CR character reference"  <d:item name="CR character reference"
     class="tokenize-error"  
471      modules="HTML::Parser">      modules="HTML::Parser">
472    <d:message xml:lang="en">Character reference to    <d:message xml:lang="en">Character reference to
473    <code>U+000D</code> (<code class="charname">CARRIAGE RETURN</code>)    <code>U+000D</code> (<code class="charname">CARRIAGE RETURN</code>)
# Line 458  Web Document Conformance Checker (BETA)< Line 475  Web Document Conformance Checker (BETA)<
475  </d:item>  </d:item>
476    
477  <d:item name="dash in comment"  <d:item name="dash in comment"
     class="tokenize-error"  
478      modules="HTML::Parser">      modules="HTML::Parser">
479    <d:message xml:lang="en">There is a <code>--</code> sequence    <d:message xml:lang="en">There is a <code>--</code> sequence
480    in a comment.</d:message>    in a comment.</d:message>
# Line 476  Web Document Conformance Checker (BETA)< Line 492  Web Document Conformance Checker (BETA)<
492  </d:item>  </d:item>
493    
494  <d:item name="duplicate attribute"  <d:item name="duplicate attribute"
     class="tokenize-error"  
495      modules="HTML::Parser">      modules="HTML::Parser">
496    <d:message xml:lang="en">There are two attributes with name    <d:message xml:lang="en">There are two attributes with name
497        <code><var>{text}</var></code>.</d:message>        <code><var>{text}</var></code>.</d:message>
# Line 490  Web Document Conformance Checker (BETA)< Line 505  Web Document Conformance Checker (BETA)<
505  </d:item>  </d:item>
506    
507  <d:item name="empty start tag"  <d:item name="empty start tag"
     class="tokenize-error"  
508      modules="HTML::Parser">      modules="HTML::Parser">
509    <d:message xml:lang="en">Empty start tag (<code>&lt;></code>) is not    <d:message xml:lang="en">Empty start tag (<code>&lt;></code>) is not
510    allowed.</d:message>    allowed.</d:message>
511  </d:item>  </d:item>
512    
513  <d:item name="empty end tag"  <d:item name="empty end tag"
     class="tokenize-error"  
514      modules="HTML::Parser">      modules="HTML::Parser">
515    <d:message xml:lang="en">Empty end tag (<code>&lt;/></code>) is not    <d:message xml:lang="en">Empty end tag (<code>&lt;/></code>) is not
516    allowed.</d:message>    allowed.</d:message>
517  </d:item>  </d:item>
518    
519  <d:item name="end tag attribute"  <d:item name="end tag attribute"
     class="tokenize-error"  
520      modules="HTML::Parser">      modules="HTML::Parser">
521    <d:message xml:lang="en">End tag cannot have attributes.</d:message>    <d:message xml:lang="en">End tag cannot have attributes.</d:message>
522      <d:message xml:lang="ja">終了タグに属性が指定されています。</d:message>
523    </d:item>
524    
525    <d:item name="empty unquoted attribute value"
526        modules="HTML::Parser">
527      <d:message xml:lang="en">Attribute value is not specified.</d:message>
528      <d:message xml:lang="ja">属性値が指定されていません。</d:message>
529      <d:desc xml:lang="en">
530        <p>The attribute value is not specified after the <code>=</code>
531        (<code>U+003C</code> <code class="charname">EQUAL SIGN</code>)
532        character.</p>
533    
534        <p>When an attribute value is empty, the <code>=</code> character after
535        the attribute name must be specified as:</p>
536    
537        <p><code class="html example">&lt;foo bar></code></p>
538    
539        <p>Instead, quotation marks can be used to explicitly represent that
540        the attribute value is empty, as:</p>
541    
542        <p><code class="html example">&lt;foo bar=""></code></p>
543    
544        <p>... or like:</p>
545    
546        <p><code class="html example">&lt;foo bar=''></code></p>
547      </d:desc>
548  </d:item>  </d:item>
549    
550  <d:item name="invalid character reference"  <d:item name="invalid character reference"
     class="tokenize-error"  
551      modules="HTML::Parser">      modules="HTML::Parser">
552    <d:message xml:lang="en">Character reference to    <d:message xml:lang="en">Character reference to
553    <code><var>{text}</var></code> is not allowed.</d:message>    <code><var>{text}</var></code> is not allowed.</d:message>
554  </d:item>  </d:item>
555    
556  <d:item name="nestc"  <d:item name="nestc"
     class="tokenize-error"  
557      modules="HTML::Parser">      modules="HTML::Parser">
558    <d:message xml:lang="en">Polytheistic slash (<code>/></code>) cannot be    <d:message xml:lang="en">Polytheistic slash (<code>/></code>) cannot be
559    used for this element.</d:message>    used for this element.</d:message>
# Line 565  Web Document Conformance Checker (BETA)< Line 601  Web Document Conformance Checker (BETA)<
601  </d:item>  </d:item>
602    
603  <d:item name="no DOCTYPE name"  <d:item name="no DOCTYPE name"
     class="tokenize-error"  
604      modules="HTML::Parser">      modules="HTML::Parser">
605    <d:message xml:lang="en">After the string <code>&lt;!DOCTYPE </code>, the    <d:message xml:lang="en">After the string <code>&lt;!DOCTYPE </code>, the
606    document type name must be specified.</d:message>    document type name must be specified.</d:message>
607  </d:item>  </d:item>
608    
609  <d:item name="no PUBLIC literal"  <d:item name="no PUBLIC literal"
     class="tokenize-error"  
610      modules="HTML::Parser">      modules="HTML::Parser">
611    <d:message xml:lang="en">After the keyword <code>PUBLIC</code>, no    <d:message xml:lang="en">After the keyword <code>PUBLIC</code>, no
612    oublic identifier is specified.</d:message>    oublic identifier is specified.</d:message>
613  </d:item>  </d:item>
614    
615  <d:item name="no refc"  <d:item name="no refc"
     class="tokenize-error"  
616      modules="HTML::Parser">      modules="HTML::Parser">
617    <d:message xml:lang="en">Character reference must be closed by a    <d:message xml:lang="en">Character reference must be closed by a
618    <code>;</code> character.</d:message>    <code>;</code> character.</d:message>
619  </d:item>  </d:item>
620    
621  <d:item name="no space before DOCTYPE name"  <d:item name="no space before DOCTYPE name"
     class="tokenize-error"  
622      modules="HTML::Parser">      modules="HTML::Parser">
623    <d:message xml:lang="en">After the string <code>&lt;!DOCTYPE</code>, there    <d:message xml:lang="en">After the string <code>&lt;!DOCTYPE</code>, there
624    must be at least a white space character before the document type    must be at least a white space character before the document type
# Line 594  Web Document Conformance Checker (BETA)< Line 626  Web Document Conformance Checker (BETA)<
626  </d:item>  </d:item>
627    
628  <d:item name="no space between attributes"  <d:item name="no space between attributes"
     class="tokenize-error"  
629      modules="HTML::Parser">      modules="HTML::Parser">
630    <d:message xml:lang="en">Attributes must be separeted by at least a    <d:message xml:lang="en">Attributes must be separeted by at least a
631    white space character.</d:message>    white space character.</d:message>
632  </d:item>  </d:item>
633    
634  <d:item name="no SYSTEM literal"  <d:item name="no SYSTEM literal"
     class="tokenize-error"  
635      modules="HTML::Parser">      modules="HTML::Parser">
636    <d:message xml:lang="en">After the keyword <code>SYSTEM</code>, no    <d:message xml:lang="en">After the keyword <code>SYSTEM</code>, no
637    system identifier is specified.</d:message>    system identifier is specified.</d:message>
638  </d:item>  </d:item>
639    
640  <d:item name="pio"  <d:item name="pio"
     class="tokenize-error"  
641      modules="HTML::Parser">      modules="HTML::Parser">
642    <d:message xml:lang="en">Processing instruction    <d:message xml:lang="en">Processing instruction
643    (<code>&lt;?<var>...</var>></code>) is not allowed in HTML    (<code>&lt;?<var>...</var>></code>) is not allowed in HTML
# Line 661  p { Line 690  p {
690  </d:item>  </d:item>
691    
692  <d:item name="string after DOCTYPE name"  <d:item name="string after DOCTYPE name"
     class="tokenize-error"  
693      modules="HTML::Parser">      modules="HTML::Parser">
694    <d:message xml:lang="en">There is a bogus string after the document type    <d:message xml:lang="en">There is a bogus string after the document type
695    name.</d:message>    name.</d:message>
696  </d:item>  </d:item>
697    
698  <d:item name="string after PUBLIC"  <d:item name="string after PUBLIC"
     class="tokenize-error"  
699      modules="HTML::Parser">      modules="HTML::Parser">
700    <d:message xml:lang="en">There is a bogus string after the keyword    <d:message xml:lang="en">There is a bogus string after the keyword
701    <code>PUBLIC</code>.</d:message>    <code>PUBLIC</code>.</d:message>
702  </d:item>  </d:item>
703    
704  <d:item name="string after PUBLIC literal"  <d:item name="string after PUBLIC literal"
     class="tokenize-error"  
705      modules="HTML::Parser">      modules="HTML::Parser">
706    <d:message xml:lang="en">There is a bogus string after the public    <d:message xml:lang="en">There is a bogus string after the public
707    identifier.</d:message>    identifier.</d:message>
708  </d:item>  </d:item>
709    
710  <d:item name="string after SYSTEM"  <d:item name="string after SYSTEM"
     class="tokenize-error"  
711      modules="HTML::Parser">      modules="HTML::Parser">
712    <d:message xml:lang="en">There is a bogus string after the keyword    <d:message xml:lang="en">There is a bogus string after the keyword
713    <code>SYSTEM</code>.</d:message>    <code>SYSTEM</code>.</d:message>
714  </d:item>  </d:item>
715    
716  <d:item name="string after SYSTEM literal"  <d:item name="string after SYSTEM literal"
     class="tokenize-error"  
717      modules="HTML::Parser">      modules="HTML::Parser">
718    <d:message xml:lang="en">There is a bogus string after the system    <d:message xml:lang="en">There is a bogus string after the system
719    identifier.</d:message>    identifier.</d:message>
720  </d:item>  </d:item>
721    
722  <d:item name="unclosed attribute value"  <d:item name="unclosed attribute value"
     class="tokenize-error"  
723      modules="HTML::Parser">      modules="HTML::Parser">
724    <d:message xml:lang="en">Attribute value is not closed by a quotation    <d:message xml:lang="en">Attribute value is not closed by a quotation
725    mark.</d:message>    mark.</d:message>
726  </d:item>  </d:item>
727    
728  <d:item name="unclosed comment"  <d:item name="unclosed comment"
     class="tokenize-error"  
729      modules="HTML::Parser">      modules="HTML::Parser">
730    <d:message xml:lang="en">Comment is not closed by a string    <d:message xml:lang="en">Comment is not closed by a string
731    <code>--></code>.</d:message>    <code>--></code>.</d:message>
732  </d:item>  </d:item>
733    
734  <d:item name="unclosed DOCTYPE"  <d:item name="unclosed DOCTYPE"
     class="tokenize-error"  
735      modules="HTML::Parser">      modules="HTML::Parser">
736    <d:message xml:lang="en">The <code>DOCTYPE</code> is not closed by a    <d:message xml:lang="en">The <code>DOCTYPE</code> is not closed by a
737    <code>></code> character.</d:message>    <code>></code> character.</d:message>
738  </d:item>  </d:item>
739    
740  <d:item name="unclosed PUBLIC literal"  <d:item name="unclosed PUBLIC literal"
     class="tokenize-error"  
741      modules="HTML::Parser">      modules="HTML::Parser">
742    <d:message xml:lang="en">The public identifier literal is not closed by a    <d:message xml:lang="en">The public identifier literal is not closed by a
743    quotation mark.</d:message>    quotation mark.</d:message>
744  </d:item>  </d:item>
745    
746  <d:item name="unclosed SYSTEM literal"  <d:item name="unclosed SYSTEM literal"
     class="tokenize-error"  
747      modules="HTML::Parser">      modules="HTML::Parser">
748    <d:message xml:lang="en">The system identifier literal is not closed by a    <d:message xml:lang="en">The system identifier literal is not closed by a
749    quotation mark.</d:message>    quotation mark.</d:message>
750  </d:item>  </d:item>
751    
752  <d:item name="unclosed tag"  <d:item name="unclosed tag"
     class="tokenize-error"  
753      modules="HTML::Parser">      modules="HTML::Parser">
754    <d:message xml:lang="en">Tag is not closed by a <code>></code>    <d:message xml:lang="en">Tag is not closed by a <code>></code>
755    character.</d:message>    character.</d:message>
# Line 742  p { Line 760  p {
760  <section id="html5-parse-errors">  <section id="html5-parse-errors">
761  <h2>HTML5 Parse Errors in Tree Construction Stage</h2>  <h2>HTML5 Parse Errors in Tree Construction Stage</h2>
762    
763    <d:item name="after after frameset"
764        modules="HTML::Parser">
765      <d:message xml:lang="en">There is a start tag
766      <code>&lt;<var>{text}</var>></code> is after the <code>html</code> element
767      is closed.</d:message>
768      <d:message xml:lang="ja"><code>html</code> 要素が閉じられた後に開始タグ
769      <code>&lt;<var>{text}</var>></code> があります。</d:message>
770    </d:item>
771    
772    <d:item name="after after frameset:/"
773        modules="HTML::Parser">
774      <d:message xml:lang="en">There is an end tag
775      <code>&lt;/<var>{text}</var>></code> is after the <code>html</code> element
776      is closed.</d:message>
777      <d:message xml:lang="ja"><code>html</code> 要素が閉じられた後に終了タグ
778      <code>&lt;/<var>{text}</var>></code> があります。</d:message>
779    </d:item>
780    
781  <d:item name="after body"  <d:item name="after body"
     class="parse-error"  
782      modules="HTML::Parser">      modules="HTML::Parser">
783    <d:message xml:lang="en">Start tag <code>&lt;<var>{text}</var>></code> is    <d:message xml:lang="en">Start tag <code>&lt;<var>{text}</var>></code> is
784    not allowed after the <code>body</code> is closed.</d:message>    not allowed after the <code>body</code> is closed.</d:message>
785  </d:item>  </d:item>
786    
787  <d:item name="after body:/"  <d:item name="after body:/"
     class="parse-error"  
788      modules="HTML::Parser">      modules="HTML::Parser">
789    <d:message xml:lang="en">End tag <code>&lt;/<var>{text}</var>></code> is    <d:message xml:lang="en">End tag <code>&lt;/<var>{text}</var>></code> is
790    not allowed after the <code>body</code> is closed.</d:message>    not allowed after the <code>body</code> is closed.</d:message>
791  </d:item>  </d:item>
792    
793  <d:item name="after body:#text"  <d:item name="after body:#text"
     class="parse-error"  
794      modules="HTML::Parser">      modules="HTML::Parser">
795    <d:message xml:lang="en">Non‐white‐space characters are not allowed    <d:message xml:lang="en">Non‐white‐space characters are not allowed
796    after the <code>body</code> is closed.</d:message>    after the <code>body</code> is closed.</d:message>
797  </d:item>  </d:item>
798    
799  <d:item name="after frameset"  <d:item name="after frameset"
     class="parse-error"  
800      modules="HTML::Parser">      modules="HTML::Parser">
801    <d:message xml:lang="en">Start tag <code>&lt;<var>{text}</var>></code> is    <d:message xml:lang="en">Start tag <code>&lt;<var>{text}</var>></code> is
802    not allowed after the <code>frameset</code> is closed.</d:message>    not allowed after the <code>frameset</code> is closed.</d:message>
803  </d:item>  </d:item>
804    
805  <d:item name="after frameset:/"  <d:item name="after frameset:/"
     class="parse-error"  
806      modules="HTML::Parser">      modules="HTML::Parser">
807    <d:message xml:lang="en">End tag <code>&lt;/<var>{text}</var>></code> is    <d:message xml:lang="en">End tag <code>&lt;/<var>{text}</var>></code> is
808    not allowed after the <code>frameset</code> is closed.</d:message>    not allowed after the <code>frameset</code> is closed.</d:message>
809  </d:item>  </d:item>
810    
811  <d:item name="after frameset:#text"  <d:item name="after frameset:#text"
     class="parse-error"  
812      modules="HTML::Parser">      modules="HTML::Parser">
813    <d:message xml:lang="en">Non‐white‐space characters are not allowed    <d:message xml:lang="en">Non‐white‐space characters are not allowed
814    after the <code>frame</code> is closed.</d:message>    after the <code>frame</code> is closed.</d:message>
815  </d:item>  </d:item>
816    
817  <d:item name="after head"  <d:item name="after head"
818      class="parse-error">      modules="HTML::Parser">
819    <d:message xml:lang="en">The <code><var>{text}</var></code> element cannot be    <d:message xml:lang="en">The <code><var>{text}</var></code> element cannot be
820    inserted between <code>head</code> and <code>body</code>    inserted between <code>head</code> and <code>body</code>
821    elements.</d:message>    elements.</d:message>
# Line 797  p { Line 827  p {
827  </d:item>  </d:item>
828    
829  <d:item name="after html"  <d:item name="after html"
     class="parse-error"  
830      modules="HTML::Parser">      modules="HTML::Parser">
831    <d:message xml:lang="en">Start tag <code>&lt;<var>{text}</var>></code> is    <d:message xml:lang="en">Start tag <code>&lt;<var>{text}</var>></code> is
832    not allowed after the <code>html</code> is closed.</d:message>    not allowed after the <code>html</code> is closed.</d:message>
833      <d:desc xml:lang="en">
834        <p>The start tag of an element appears after the
835        <code>body</code> element has been closed.  The document is
836        non-conforming.</p>
837    
838        <p>Any content of the document other than <code>head</code>
839        contents and comments must be put into the <code>body</code>
840        element.</p>
841      </d:desc>
842  </d:item>  </d:item>
843    
844  <d:item name="after html:/"  <d:item name="after html:/"
     class="parse-error"  
845      modules="HTML::Parser">      modules="HTML::Parser">
846    <d:message xml:lang="en">End tag <code>&lt;/<var>{text}</var>></code> is    <d:message xml:lang="en">End tag <code>&lt;/<var>{text}</var>></code> is
847    not allowed after the <code>html</code> is closed.</d:message>    not allowed after the <code>html</code> is closed.</d:message>
848      <d:desc xml:lang="en">
849        <p>The end tag of an element appears after the
850        <code>body</code> element has been closed.  The document is
851        non-conforming.</p>
852    
853        <p>Any content of the document other than <code>head</code>
854        contents and comments must be put into the <code>body</code>
855        element.</p>
856      </d:desc>
857  </d:item>  </d:item>
858    
859  <d:item name="after html:#text"  <d:item name="after html:#text"
     class="parse-error"  
860      modules="HTML::Parser">      modules="HTML::Parser">
861    <d:message xml:lang="en">Non‐white‐space characters are not allowed    <d:message xml:lang="en">Non‐white‐space characters are not allowed
862    after the <code>html</code> is closed.</d:message>    after the <code>html</code> is closed.</d:message>
863  </d:item>  </d:item>
864    
865  <d:item name="image"  <d:item name="image"
     class="parse-error"  
866      modules="HTML::Parser">      modules="HTML::Parser">
867    <d:message xml:lang="en">The <code>image</code> element is    <d:message xml:lang="en">The <code>image</code> element is
868    obsolete.</d:message>    obsolete.</d:message>
869  </d:item>  </d:item>
870    
871  <d:item name="in a:a"  <d:item name="in a:a"
     class="parse-error"  
872      modules="HTML::Parser">      modules="HTML::Parser">
873    <d:message xml:lang="en">Anchor cannot be nested.</d:message>    <d:message xml:lang="en">Anchor cannot be nested.</d:message>
874    <d:desc xml:lang="en">    <d:desc xml:lang="en">
# Line 838  p { Line 881  p {
881  </d:item>  </d:item>
882    
883  <d:item name="in body"  <d:item name="in body"
     class="parse-error"  
884      modules="HTML::Parser">      modules="HTML::Parser">
885    <d:message xml:lang="en">Start tag <code>&lt;<var>{text}</var>&gt;</code>    <d:message xml:lang="en">Start tag <code>&lt;<var>{text}</var>&gt;</code>
886    is not allowed in the <code>body</code> element.</d:message>    is not allowed in the <code>body</code> element.</d:message>
# Line 851  p { Line 893  p {
893  </d:item>  </d:item>
894    
895  <d:item name="in body:#eof"  <d:item name="in body:#eof"
     class="parse-error"  
896      modules="HTML::Parser">      modules="HTML::Parser">
897    <d:message xml:lang="en">Some element is not closed before the end of    <d:message xml:lang="en">Some element is not closed before the end of
898    file.</d:message>    file.</d:message>
899  </d:item>  </d:item>
900    
901  <d:item name="in button:button"  <d:item name="in button:button"
     class="parse-error"  
902      modules="HTML::Parser">      modules="HTML::Parser">
903    <d:message xml:lang="en">The <code>button</code> element cannot be    <d:message xml:lang="en">The <code>button</code> element cannot be
904    nested.</d:message>    nested.</d:message>
905  </d:item>  </d:item>
906    
907  <d:item name="in CDATA:#eof"  <d:item name="in CDATA:#eof"
     class="parse-error"  
908      modules="HTML::Parser">      modules="HTML::Parser">
909    <d:message xml:lang="en">Element is not closed before the end of    <d:message xml:lang="en">Element is not closed before the end of
910    file.</d:message>    file.</d:message>
911  </d:item>  </d:item>
912    
913  <d:item name="in form:form"  <d:item name="in form:form"
     class="parse-error"  
914      modules="HTML::Parser">      modules="HTML::Parser">
915    <d:message xml:lang="en">Start tag <code>&lt;form></code> is    <d:message xml:lang="en">Start tag <code>&lt;form></code> is
916    not allowed in a <code>form</code> element.</d:message>    not allowed in a <code>form</code> element.</d:message>
917  </d:item>  </d:item>
918    
919  <d:item name="in frameset"  <d:item name="in frameset"
     class="parse-error"  
920      modules="HTML::Parser">      modules="HTML::Parser">
921    <d:message xml:lang="en">Start tag <code>&lt;<var>{text}</var>></code> is    <d:message xml:lang="en">Start tag <code>&lt;<var>{text}</var>></code> is
922    not allowed in a <code>framset</code> element.</d:message>    not allowed in a <code>framset</code> element.</d:message>
923  </d:item>  </d:item>
924    
925  <d:item name="in frameset:/"  <d:item name="in frameset:/"
     class="parse-error"  
926      modules="HTML::Parser">      modules="HTML::Parser">
927    <d:message xml:lang="en">End tag <code>&lt;/<var>{text}</var>></code> is    <d:message xml:lang="en">End tag <code>&lt;/<var>{text}</var>></code> is
928    not allowed in a <code>frameset</code> element.</d:message>    not allowed in a <code>frameset</code> element.</d:message>
929  </d:item>  </d:item>
930    
931  <d:item name="in frameset:#text"  <d:item name="in frameset:#text"
     class="parse-error"  
932      modules="HTML::Parser">      modules="HTML::Parser">
933    <d:message xml:lang="en">Non‐white‐space characters are not allowed    <d:message xml:lang="en">Non‐white‐space characters are not allowed
934    in a <code>frameset</code> element.</d:message>    in a <code>frameset</code> element.</d:message>
935  </d:item>  </d:item>
936    
937  <d:item name="in head:head"  <d:item name="in head:head"
     class="parse-error"  
938      modules="HTML::Parser">      modules="HTML::Parser">
939    <d:message xml:lang="en">Start tag <code>&lt;head&gt;</code>    <d:message xml:lang="en">Start tag <code>&lt;head&gt;</code>
940    is not allowed in the <code>head</code> element.</d:message>    is not allowed in the <code>head</code> element.</d:message>
# Line 915  p { Line 949  p {
949  </d:item>  </d:item>
950    
951  <d:item name="in html:#DOCTYPE"  <d:item name="in html:#DOCTYPE"
     class="parse-error"  
952      modules="HTML::Parser">      modules="HTML::Parser">
953    <d:message xml:lang="en">A <code>DOCTYPE</code> appears after any    <d:message xml:lang="en">A <code>DOCTYPE</code> appears after any
954    element or data character has been seen.</d:message>    element or data character has been seen.</d:message>
# Line 932  p { Line 965  p {
965  </d:item>  </d:item>
966    
967  <d:item name="in nobr:nobr"  <d:item name="in nobr:nobr"
     class="parse-error"  
968      modules="HTML::Parser">      modules="HTML::Parser">
969    <d:message xml:lang="en">The <code>nobr</code> element cannot be    <d:message xml:lang="en">The <code>nobr</code> element cannot be
970    nested.</d:message>    nested.</d:message>
971  </d:item>  </d:item>
972    
973  <d:item name="in noscript"  <d:item name="in noscript"
     class="parse-error"  
974      modules="HTML::Parser">      modules="HTML::Parser">
975    <d:message xml:lang="en">The <code><var>{text}</var></code> element is not    <d:message xml:lang="en">The <code><var>{text}</var></code> element is not
976    allowed in a <code>noscript</code> element in the    allowed in a <code>noscript</code> element in the
# Line 947  p { Line 978  p {
978  </d:item>  </d:item>
979    
980  <d:item name="in noscript:/"  <d:item name="in noscript:/"
     class="parse-error"  
981      modules="HTML::Parser">      modules="HTML::Parser">
982    <d:message xml:lang="en">An end tag <code>&lt;/<var>{text}</var>></code>    <d:message xml:lang="en">An end tag <code>&lt;/<var>{text}</var>></code>
983    appers before the <code>noscript</code> element is closed.</d:message>    appers before the <code>noscript</code> element is closed.</d:message>
984  </d:item>  </d:item>
985    
986  <d:item name="in noscript:#eof"  <d:item name="in noscript:#eof"
     class="parse-error"  
987      modules="HTML::Parser">      modules="HTML::Parser">
988    <d:message xml:lang="en">A <code>noscript</code> element is not closed    <d:message xml:lang="en">A <code>noscript</code> element is not closed
989    before the end of file.</d:message>    before the end of file.</d:message>
990  </d:item>  </d:item>
991    
992  <d:item name="in noscript:#text"  <d:item name="in noscript:#text"
     class="parse-error"  
993      modules="HTML::Parser">      modules="HTML::Parser">
994    <d:message xml:lang="en">Non‐white‐space characters are not allowed    <d:message xml:lang="en">Non‐white‐space characters are not allowed
995    in a <code>noscript</code> element in the <code>head</code>    in a <code>noscript</code> element in the <code>head</code>
# Line 969  p { Line 997  p {
997  </d:item>  </d:item>
998    
999  <d:item name="in PCDATA:#eof"  <d:item name="in PCDATA:#eof"
     class="parse-error"  
1000      modules="HTML::Parser">      modules="HTML::Parser">
1001    <d:message xml:lang="en">Element is not closed before the end of    <d:message xml:lang="en">Element is not closed before the end of
1002    file.</d:message>    file.</d:message>
1003  </d:item>  </d:item>
1004    
1005  <d:item name="in select"  <d:item name="in select"
     class="parse-error"  
1006      modules="HTML::Parser">      modules="HTML::Parser">
1007    <d:message xml:lang="en">Start tag <code>&lt;<var>{text}</var>&gt;</code>    <d:message xml:lang="en">Start tag <code>&lt;<var>{text}</var>&gt;</code>
1008    is not allowed in a <code>select</code> element.</d:message>    is not allowed in a <code>select</code> element.</d:message>
1009  </d:item>  </d:item>
1010    
1011  <d:item name="in select:/"  <d:item name="in select:/"
     class="parse-error"  
1012      modules="HTML::Parser">      modules="HTML::Parser">
1013    <d:message xml:lang="en">End tag <code>&lt;/<var>{text}</var>&gt;</code>    <d:message xml:lang="en">End tag <code>&lt;/<var>{text}</var>&gt;</code>
1014    is not allowed in a <code>select</code> element.</d:message>    is not allowed in a <code>select</code> element.</d:message>
1015  </d:item>  </d:item>
1016    
1017  <d:item name="in table"  <d:item name="in table"
     class="parse-error"  
1018      modules="HTML::Parser">      modules="HTML::Parser">
1019    <d:message xml:lang="en">Start tag <code>&lt;<var>{text}</var>&gt;</code>    <d:message xml:lang="en">Start tag <code>&lt;<var>{text}</var>&gt;</code>
1020    is not allowed in a <code>table</code> element.</d:message>    is not allowed in a <code>table</code> element.</d:message>
# Line 1009  p { Line 1033  p {
1033  </d:item>  </d:item>
1034    
1035  <d:item name="in table:/"  <d:item name="in table:/"
     class="parse-error"  
1036      modules="HTML::Parser">      modules="HTML::Parser">
1037    <d:message xml:lang="en">End tag <code>&lt;/<var>{text}</var>&gt;</code>    <d:message xml:lang="en">End tag <code>&lt;/<var>{text}</var>&gt;</code>
1038    is not allowed in a <code>table</code> element.</d:message>    is not allowed in a <code>table</code> element.</d:message>
1039  </d:item>  </d:item>
1040    
1041  <d:item name="in table:#text"  <d:item name="in table:#text"
     class="parse-error"  
1042      modules="HTML::Parser">      modules="HTML::Parser">
1043    <d:message xml:lang="en">Non‐white‐space character is not allowed within    <d:message xml:lang="en">Non‐white‐space character is not allowed within
1044    the <code>table</code> element, outside of the caption and cells.</d:message>    the <code>table</code> element, outside of the caption and cells.</d:message>
# Line 1033  p { Line 1055  p {
1055  </d:item>  </d:item>
1056    
1057  <d:item name="isindex"  <d:item name="isindex"
     class="parse-error"  
1058      modules="HTML::Parser">      modules="HTML::Parser">
1059    <d:message xml:lang="en">The <code>isindex</code> element is    <d:message xml:lang="en">The <code>isindex</code> element is
1060    obsolete.</d:message>    obsolete.</d:message>
1061  </d:item>  </d:item>
1062    
1063  <d:item name="missing start tag:tr"  <d:item name="missing start tag:tr"
     class="parse-error"  
1064      modules="HTML::Parser">      modules="HTML::Parser">
1065    <d:message xml:lang="en">Start tag of <code>tr</code>    <d:message xml:lang="en">Start tag of <code>tr</code>
1066    element is missing.</d:message>    element is missing.</d:message>
# Line 1450  p { Line 1470  p {
1470    
1471  <d:item name="element not allowed:meta charset"  <d:item name="element not allowed:meta charset"
1472      modules="ContentChecker::HTML">      modules="ContentChecker::HTML">
1473    <d:message xml:lang="en">The character encoding declaration must be the    <d:message xml:lang="en">The character encoding declaration is not the
1474    first element in the <code>head</code> element.</d:message>    first child element in the <code>head</code> element.</d:message>
1475      <d:message xml:lang="ja">文字符号化宣言が <code>head</code>
1476      要素の最初の子要素ではありません。</d:message>
1477      <d:desc xml:lang="en">
1478        <p>The character encoding declaration
1479        (<code class="html example">&lt;meta charset="<var>...</var>"></code> or
1480        <code class="html example">&lt;meta http-equiv=Content-Type content="text/html; charset=<var>...</var>"></code>
1481        must be the first child element in the <code>head</code> element.</p>
1482    
1483        <p>The character encoding declaration have to occur near the beginning
1484        of the document to ensure that Web browsers can be determine the
1485        character encoding of the document.</p>
1486    
1487        <p>The <code>title</code> element and other metadata elements must
1488        appear after any character encoding declaration is processed.</p>
1489      </d:desc>
1490  </d:item>  </d:item>
1491    
1492  <d:item name="element not allowed:metadata"  <d:item name="element not allowed:metadata"
# Line 1535  p { Line 1570  p {
1570  <d:item name="element not defined"  <d:item name="element not defined"
1571      modules="ContentChecker">      modules="ContentChecker">
1572    <d:message xml:lang="en">This element is not defined.</d:message>    <d:message xml:lang="en">This element is not defined.</d:message>
1573      <d:message xml:lang="ja">この要素は定義されていません。</d:message>
1574      <d:desc xml:lang="en">
1575        <p>The element is not one of elements allowed
1576        in the latest version of relevant specifications.</p>
1577    
1578        <p>The element cannot be used.</p>
1579    
1580        <dl class="switch">
1581        <dt><code>event-source</code> element</dt>
1582            <dd>The element was renamed as <em><code>eventsource</code>
1583            element</em> (no hyphen).</dd>
1584        <dt><code>m</code> element</dt>
1585            <dd>The element was renamed as <em><code>mark</code>
1586            element</em>.</dd>
1587        </dl>
1588      </d:desc>
1589  </d:item>  </d:item>
1590    
1591  <d:item name="no significant content"  <d:item name="no significant content"
# Line 1659  p { Line 1710  p {
1710  <d:item name="attribute not defined"  <d:item name="attribute not defined"
1711      modules="ContentChecker">      modules="ContentChecker">
1712    <d:message xml:lang="en">This attribute is not defined.</d:message>    <d:message xml:lang="en">This attribute is not defined.</d:message>
1713      <d:message xml:lang="ja">この属性は定義されていません。</d:message>
1714      <d:desc xml:lang="en">
1715        <p>The attribute is not one of attributes allowed for the element
1716        in the latest version of relevant specifications.</p>
1717    
1718        <p>The attribute cannot be used.</p>
1719    
1720        <dl class="switch">
1721        <dt><code>align</code> attribute (various HTML elements)</dt>
1722        <dt><code>border</code> attribute (various HTML elements)</dt>
1723          <dd>These attributes are no longer part of HTML.  You can use CSS
1724          properties to control the presentation of the element.</dd>
1725        <dt><code>autosubmit</code> attribute (<code>menu</code> element)</dt>
1726          <dd>The attribute was part of HTML5 draft but then dropped.
1727          Similar functionality can be implemented by scripts.</dd>
1728        <dt><code>language</code> attribute (<code>script</code> element)</dt>
1729          <dd>The attribute is no longer the standard way to specify the
1730          scripting language.  If you are using JavaScript, then no explicit
1731          specification of the scripting language is necessary, so you can
1732          write the element like:
1733            <p><code class="html example code">&lt;script><br/><!--
1734            --> /* JavaScript code */<br/><!--
1735            -->&lt;/script></code></p>
1736          If you are using different scripting language from JavaScript, or
1737          you want to declare the scripting language explicitly, you should
1738          use the <code>type</code> attribute, as follows:
1739            <dl class="switch">
1740            <dt>JavaScript</dt>
1741              <dd>Use
1742              <code class="html example">&lt;script type="text/javascript"></code>.</dd>
1743            <dt>VBScript</dt>
1744              <dd>Use
1745              <code class="html example">&lt;script type="text/vbscript"></code>.</dd>
1746            </dl>
1747          </dd>
1748        </dl>
1749      </d:desc>
1750  </d:item>  </d:item>
1751    
1752  <d:item name="in HTML:xml:lang"  <d:item name="in HTML:xml:lang"
     class="attribute-error"  
1753      modules="ContentChecker::XML">      modules="ContentChecker::XML">
1754    <d:message xml:lang="en">The <code>xml:lang</code> attribute is not    <d:message xml:lang="en">The <code>xml:lang</code> attribute in HTML
1755    allowed in HTML document.</d:message>    document is ignored.</d:message>
1756    <d:desc xml:lang="en">    <d:desc xml:lang="en">
1757      <p>The <code>xml:lang</code> attribute is not allowed in      <p>The <code>xml:lang</code> attribute does not have an effect in
1758      HTML document.  The document is non-conforming.</p>      HTML document.</p>
1759    
1760      <p>Use of the <code>xml:lang</code> attribute is conforming      <p>The <code>xml:lang</code> attribute is only applicable to XML
1761      <em>only</em> in XML documents.</p>      documents.  In HTML document, it is only allowed to ease migration
1762        from XML.</p>
1763    
1764      <p>To specify natural language information in HTML document,      <p>To specify natural language information in HTML document,
1765      use <code>lang</code> attribute instead.</p>      use <code>lang</code> attribute instead.</p>
# Line 1703  p { Line 1791  p {
1791    </d:desc>    </d:desc>
1792  </d:item>  </d:item>
1793    
 <d:item name="in XML:lang"  
     modules="ContentChecker::HTML">  
   <d:message xml:lang="en">The <code>lang</code> attribute is not  
   allowed in XML document.</d:message>  
   <d:desc>  
     <p>The HTML <code>lang</code> attribute is not allowed in  
     XML document.  The document is non-conforming.</p>  
   
     <p>The <code>lang</code> attribute in <code>null</code>  
     namespace for HTML elements is conforming <em>only</em> in  
     HTML documents.</p>  
   
     <p>To specify natural language information in XML document,  
     use <code>xml:lang</code> attribute instead.</p>  
   </d:desc>  
 </d:item>  
   
1794  <d:item name="in XML:noscript"  <d:item name="in XML:noscript"
1795      modules="ContentChecker::HTML">      modules="ContentChecker::HTML">
1796    <d:message xml:lang="en">A <code>noscript</code> element cannot be    <d:message xml:lang="en">A <code>noscript</code> element cannot be
1797    used in XML document.</d:message>    used in XML document.</d:message>
1798  </d:item>  </d:item>
1799    
1800    <d:item name="in XML:xml:lang"
1801        modules="ContentChecker::HTML">
1802      <d:message xml:lang="en">The <code>xml:lang</code> attribute in no namespace
1803      is only allowed in HTML document.</d:message>
1804      <d:message xml:lang="ja">名前空間に属さない <code>xml:lang</code>
1805      属性が認められているのは HTML 文書中だけです。</d:message>
1806    </d:item>
1807    
1808  <d:item name="in XML:xmlns"  <d:item name="in XML:xmlns"
1809      modules="ContentChecker::HTML">      modules="ContentChecker::HTML">
1810    <d:message xml:lang="en">The <code>xmlns</code> attribute    <d:message xml:lang="en">The <code>xmlns</code> attribute
# Line 1740  p { Line 1819  p {
1819    </d:desc>    </d:desc>
1820  </d:item>  </d:item>
1821    
1822    <d:item name="xml:lang not allowed"
1823        modules="ContentChecker::HTML">
1824      <d:message xml:lang="en">The <code>xml:lang</code> attribute is only allowed
1825      when the <code>lang</code> attribute is specified.</d:message>
1826      <d:message xml:lang="ja"><code>xml:lang</code> 属性を指定できるのは
1827      <code>lang</code> 属性が指定されている時だけです。</d:message>
1828    </d:item>
1829    
1830  </section>  </section>
1831    
1832  <section id="attribute-value-errors">  <section id="attribute-value-errors">
# Line 1946  p { Line 2033  p {
2033    
2034  <d:item name="dateortime:syntax error"  <d:item name="dateortime:syntax error"
2035      modules="ContentChecker::HTML">      modules="ContentChecker::HTML">
2036    <d:message xml:lang="en">The attribute value is not a date or    <d:message xml:lang="en">The value is not a date or time.</d:message>
   time.</d:message>  
2037  </d:item>  </d:item>
2038    
2039  <d:item name="enumerated:invalid"  <d:item name="enumerated:invalid"
# Line 2025  p { Line 2111  p {
2111    
2112  <d:item name="empty attribute value"  <d:item name="empty attribute value"
2113      modules="ContentChecker::HTML">      modules="ContentChecker::HTML">
2114    <d:message xml:lang="en">The attribute value must not be empty.</d:message>    <d:message xml:lang="en">The attribute value is empty.</d:message>
2115      <d:message xml:lang="ja">属性値が空です。</d:message>
2116    </d:item>
2117    
2118    <d:item name="empty style sheet title"
2119        modules="ContentChecker::HTML">
2120      <d:message xml:lang="en">The value of the <code>title</code> attribute
2121      is empty.</d:message>
2122      <d:message xml:lang="ja"><code>title</code> 属性の値が空です。</d:message>
2123      <d:desc xml:lang="en">
2124        <p>The <code>title</code> attribute value of the <code>link</code>
2125        element that defines an alternate style sheet is an empty value.</p>
2126    
2127        <p>A <code>link</code> element whose <code>rel</code> attribute
2128        is <code>alternate stylesheet</code> defines an alternate style sheet.
2129        An alternate style sheet must be associated with a name using the
2130        <code>title</code> attribute.  The name cannot be empty.</p>
2131      </d:desc>
2132  </d:item>  </d:item>
2133    
2134  <d:item name="float:out of range"  <d:item name="float:out of range"
# Line 2286  p { Line 2389  p {
2389    1.0 <code>NCName</code>.</d:message>    1.0 <code>NCName</code>.</d:message>
2390  </d:item>  </d:item>
2391    
2392    <d:item name="xml:lang ne lang"
2393        modules="ContentChecker::XML ContentChecker::HTML">
2394      <d:message xml:lang="en">The value of the <code>xml:lang</code> attribute
2395      is different from the value of the <code>lang</code> attribute.</d:message>
2396      <d:message xml:lang="ja"><code>xml:lang</code> 属性の値が <code>lang</code>
2397      属性の値と異なります。</d:message>
2398      <d:desc xml:lang="en">
2399        <p>The value of the <code>xml:lang</code> attribute (either the
2400        <code>lang</code> attribute in the <code>xml</code> (i.e.
2401        <code>http://www.w3.org/XML/1998/namespace</code>) namespace, or
2402        the <code>xml:lang</code> attribute in no namespace) for the element has
2403        different value than that of the <code>lang</code> attribute in no
2404        namespace.</p>
2405    
2406        <p>For historical reason, there are two attributes applicable to HTML
2407        elements to specify language information of an element: <code>lang</code>
2408        and <code>xml:lang</code>.  In HTML documents, only <code>lang</code>
2409        attribute in no namespace is allowed and take effect; the
2410        <code>xml:lang</code> attribute in no namespace is ignored in HTML
2411        documents.  In XHTML documents, both <code>lang</code> and
2412        <code>xml:lang</code> attributes are allowed.</p>
2413    
2414        <p>In general, <em>only the <code>lang</code> attribute</em> need to be
2415        specified for an element.</p>
2416    
2417        <p>If both <code>lang</code> and <code>xml:lang</code> attributes are
2418        specified on the same element, their values must be the same value.</p>
2419      </d:desc>
2420      <d:desc xml:lang="ja">
2421        <p><code>xml:lang</code> 属性 (<code>xml</code> (=
2422        <code>http://www.w3.org/XML/1998/namespace</code>) 名前空間の
2423        <code>lang</code> 属性や名前空間に属さない
2424        <code>xml:lang</code> 属性) の値が同じ要素の名前空間に属さない
2425        <code>lang</code> 属性の値と異なっています。</p>
2426    
2427        <p>歴史的な理由により、 HTML 要素の言語指定のための属性は
2428        <code>lang</code> と <code>xml:lang</code> の2つがあります。 HTML
2429        文書では名前空間に属さない <code>lang</code> 属性だけが認められており、
2430        かつ効力があります。名前空間に属さない
2431        <code>xml:lang</code> 属性は HTML 文書では無視されます。 XHTML 文書では
2432        <code>lang</code> 属性も <code>xml:lang</code> 属性も認められています。</p>
2433    
2434        <p>通常、要素の言語情報は <em><code>lang</code>
2435        属性だけ</em>を使って指定すれば十分です。</p>
2436    
2437        <p><code>lang</code> 属性と <code>xml:lang</code>
2438        属性の両方を同じ要素に指定する場合、
2439        両者の値は同じでなければなりません。</p>
2440      </d:desc>
2441    </d:item>
2442    
2443  </section>  </section>
2444    
2445  <section id="table-model-errors">  <section id="table-model-errors">
# Line 2355  p { Line 2509  p {
2509  <section id="imt-warnings">  <section id="imt-warnings">
2510  <h2>Internet Media Type Errors</h2>  <h2>Internet Media Type Errors</h2>
2511    
2512    <d:item name="boundary:syntax error"
2513        modules="IMTChecker">
2514      <d:message xml:lang="en">The specified value is not a valid value
2515      as a multipart boundary.</d:message>
2516    </d:item>
2517    
2518    <d:item name="e4x:syntax error"
2519        modules="IMTChecker">
2520      <d:message xml:lang="en">The specified value is not a valid value
2521      for the attribute <code>e4x</code>.</d:message>
2522    </d:item>
2523    
2524    <d:item name="IMT:attribute syntax error"
2525        modules="IMTChecker">
2526      <d:message xml:lang="en">The specified value,
2527      <code><var>{value}</var></code>, is syntactically not a valid
2528      attribute name.</d:message>
2529    </d:item>
2530    
2531  <d:item name="IMT:composite"  <d:item name="IMT:composite"
2532      modules="ContentChecker::Atom">      modules="ContentChecker::Atom">
2533    <d:message xml:lang="en">The specified media type is a composite    <d:message xml:lang="en">The specified media type is a composite
2534    type, which is not allowed in this context.</d:message>    type, which is not allowed in this context.</d:message>
2535  </d:item>  </d:item>
2536    
2537    <d:item name="IMT:limited use subtype"
2538        modules="IMTChecker">
2539      <d:message xml:lang="en">An Internet Media Type whose intended usage
2540      is limited use, <code><var>{value}</var></code> is used.</d:message>
2541    </d:item>
2542    
2543  <d:item name="IMT:syntax error"  <d:item name="IMT:syntax error"
2544      modules="ContentChecker::HTML ContentChecker::Atom">      modules="ContentChecker::HTML ContentChecker::Atom">
2545    <d:message xml:lang="en">The specified value is not an Internet Media    <d:message xml:lang="en">The specified value is not an Internet Media
2546    Type.</d:message>    Type.</d:message>
2547  </d:item>  </d:item>
2548    
2549    <d:item name="IMT:obsolete parameter"
2550        modules="IMTChecker">
2551      <d:message xml:lang="en">An obsolete parameter
2552      <code><var>{value}</var></code> is used.</d:message>
2553    </d:item>
2554    
2555  <d:item name="IMT:obsolete subtype"  <d:item name="IMT:obsolete subtype"
2556      class="should" level="s">      modules="IMTChecker">
2557    <d:message xml:lang="en"><code><var>{@}</var></code>: An <em>obsolete</em>    <d:message xml:lang="en">An obsolete Internet Media Type
2558    subtype is used.</d:message>    <code><var>{value}</var></code> is used.</d:message>
2559    <d:item xml:lang="en">    <d:message xml:lang="ja">廃止されたインターネット媒体型
2560      <p>The specified Internet Media Type is registered with status    <code><var>{value}</var></code> が使われています。</d:message>
2561      of <i>OBSOLETE</i>.</p><!-- @@ SHOULD NOT? -->    <d:desc xml:lang="en">
2562        <p>The specified Internet Media Type is registered with its intended
2563        usage as <i>OBSOLETE</i>.</p>
2564            
2565      <dl class="swtich">      <dl class="swtich">
2566      <dt>Media type <code>text/ecmascript</code></dt>      <dt>Media type <code>text/ecmascript</code></dt>
2567        <dd>Media type <code>text/ecmascript</code> is obsoleted in        <dd>Media type <code>text/ecmascript</code> is obsoleted in
2568        favor of <code>application/ecmascript</code>.  Note that        favor of <code>application/ecmascript</code>.  Note that
2569        <code>text/javascript</code> would be better alternative        <em><code>text/javascript</code></em> would be the better alternative
2570        for many cases.</dd>        in many cases.</dd>
2571      <dt>Media type <code>text/javascript</code></dt>      <dt>Media type <code>text/javascript</code></dt>
2572        <dd>Media type <code>text/javascript</code> is obsoleted by        <dd>Media type <code>text/javascript</code> is obsoleted by
2573        <abbr>IETF</abbr> with backward incompatible alternate        <abbr>IETF</abbr> with backward incompatible alternate
2574        <code>application/javascript</code> for architectural        <code>application/javascript</code> for architectural
2575        purity.<!-- @@ ref? -->  Realist may ignore this warning.</dd>        purity.<!-- @@ ref? -->  Those who prefer reality to academic
2576          purity <em>may ignore</em> this warning.</dd>
2577      </dl>      </dl>
2578    </d:item>    </d:desc>
2579    </d:item>
2580    
2581    <d:item name="IMT:parameter missing"
2582        modules="IMTChecker">
2583      <d:message xml:lang="en">Parameter <code><var>{text}</var></code> have to
2584      be specified for the Internet Media Type
2585      <code><var>{value}</var></code>.</d:message>
2586    </d:item>
2587    
2588    <d:item name="IMT:parameter not allowed"
2589        modules="IMTChecker">
2590      <d:message xml:lang="en">Parameter <code><var>{value}</var></code> is not
2591      allowed for this Internet Media Type.</d:message>
2592  </d:item>  </d:item>
2593    
2594  <d:item name="IMT:private subtype"  <d:item name="IMT:private subtype"
2595      class="should" level="s">      modules="IMTChecker">
2596    <d:message xml:lang="en"><code><var>{@}</var></code>: A private    <d:message xml:lang="en">Use of a private Internet Media Type
2597    (<code>x-</code> or <code>x.</code>) subtype is used.</d:message>    <code><var>{value}</var></code> is not encouraged.</d:message>
2598    </d:item>
2599    
2600    <d:item name="IMT:private type"
2601        modules="IMTChecker">
2602      <d:message xml:lang="en">Use of a private type
2603      <code><var>{value}</var></code> is not encouraged.</d:message>
2604    </d:item>
2605    
2606    <d:item name="IMT:subtype syntax error"
2607        modules="IMTChecker">
2608      <d:message xml:lang="en">Value <code><var>{value}</var></code> is
2609      syntactically not a valid subtype value of an Internet Media Type.</d:message>
2610    </d:item>
2611    
2612    <d:item name="IMT:type syntax error"
2613        modules="IMTChecker">
2614      <d:message xml:lang="en">Value <code><var>{value}</var></code> is
2615      syntactically not a valid type.</d:message>
2616    </d:item>
2617    
2618    <d:item name="IMT:unknown parameter"
2619        modules="IMTChecker">
2620      <d:message xml:lang="en">An unknown parameter <code><var>{value}</var></code>
2621      is used.  The conformance checker cannot determine whether use of this
2622      parameter is valid or not.</d:message>
2623    </d:item>
2624    
2625    <d:item name="IMT:unknown subtype"
2626        modules="IMTChecker">
2627      <d:message xml:lang="en">An unknown Internet Media Type
2628      <code><var>{value}</var></code> is used.  At the time of the update of
2629      the conformance checker's Internet Media Type database, the subtype is
2630      not reigstered to the IANA registry.  The subtype, however, might be
2631      registerd to the IANA registry thereafter.  Please consult the IANA
2632      registry.</d:message>
2633  </d:item>  </d:item>
2634    
2635  <d:item name="IMT:unregistered subtype"  <d:item name="IMT:unregistered subtype"
2636      class="should" level="s">      modules="IMTChecker">
2637    <d:message xml:lang="en"><code><var>{@}</var></code>: The subtype is    <d:message xml:lang="en">Use of an Internet Media Type
2638    not registered to IANA.</d:message>    <code><var>{value}</var></code> is not encouraged since it is not
2639  <!-- TODO: Unknown message?? -->    part of the IANA registry.</d:message>
2640    </d:item>
2641    
2642    <d:item name="IMT:unregistered type"
2643        modules="IMTChecker">
2644      <d:message xml:lang="en">Use of a type
2645      <code><var>{value}</var></code> is not encouraged since it is not
2646      a standardized type.</d:message>
2647  </d:item>  </d:item>
2648    
2649  <d:item name="not IMT"  <d:item name="not IMT"
# Line 2460  p { Line 2703  p {
2703  <d:item name="URL:address format"  <d:item name="URL:address format"
2704      modules="URIChecker">      modules="URIChecker">
2705    <d:message xml:lang="en">URL host address format    <d:message xml:lang="en">URL host address format
2706    <code><var>{value}</var></code> is not supported by the    <code><var>{text}</var></code> is not defined.</d:message>
   conformance checker.</d:message>  
2707  </d:item>  </d:item>
2708    
2709  <d:item name="URL:default port"  <d:item name="URL:default port"
# Line 3231  p { Line 3473  p {
3473    <code><var>{text}</var></code> is not supported.</d:message>    <code><var>{text}</var></code> is not supported.</d:message>
3474  </d:item>  </d:item>
3475    
3476  </section>  <d:item name="help not available"
3477        modules="cc-script">
3478  <d:cat name="WebHACC:Title">    <d:message xml:lang="en">No more information is available.</d:message>
3479    <d:text xml:lang="en">WebHACC (β)</d:text>    <d:message xml:lang="ja">これ以上の詳しい情報はありません。</d:message>
3480  </d:cat>    <d:desc xml:lang="en">
3481        <p>No more information is available for this topic.</p>
3482      </d:desc>
3483      <d:desc xml:lang="ja">
3484        <p>これについての詳しい情報はありません。</p>
3485      </d:desc>
3486    </d:item>
3487    
3488  <d:cat name="WebHACC:Heading">  </section>
   <d:text xml:lang="en">  
     <a href="../cc-about"><abbr title="Web Hypertext Application Conformance Checker (β)"><img src="../icons/title" alt="WebHACC"/></abbr></a>  
   </d:text>  
   <d:text xml:lang="ja">  
     <a href="../cc-about"><abbr title="Web ハイパーテキスト応用適合性検査器 (β)"><img src="../icons/title" alt="WebHACC"/></abbr></a>  
   </d:text>  
 </d:cat>  
3489    
3490  <d:cat name="Input">  <d:cat name="Input">
3491    <d:text xml:lang="en">Input</d:text>    <d:text xml:lang="en">Input</d:text>
# Line 3635  p { Line 3876  p {
3876    <d:text xml:lang="ja">位置不明</d:text>    <d:text xml:lang="ja">位置不明</d:text>
3877  </d:cat>  </d:cat>
3878    
3879    <d:cat name="(unknown)">
3880      <d:text xml:lang="en">(Unknown)</d:text>
3881      <d:text xml:lang="ja">(不明)</d:text>
3882    </d:cat>
3883    
3884    <d:cat name="Description">
3885      <d:text xml:lang="en">Description</d:text>
3886      <d:text xml:lang="ja">説明</d:text>
3887    </d:cat>
3888    
3889  <d:cat name="Table #">  <d:cat name="Table #">
3890    <d:text xml:lang="en">Structure of Table #<var>{text}</var></d:text>    <d:text xml:lang="en">Structure of Table #<var>{text}</var></d:text>
3891    <d:text xml:lang="ja">表 #<var>{text}</var> の構造</d:text>    <d:text xml:lang="ja">表 #<var>{text}</var> の構造</d:text>
# Line 3778  p { Line 4029  p {
4029  </d:cat>  </d:cat>
4030    
4031  <d:cat name="Error level m">  <d:cat name="Error level m">
4032    <d:text xml:lang="en"><a href="../error-description#level-m"><em class="rfc2119">MUST</em>‐level    <d:text xml:lang="en"><a href="../error-description#Error-level-m" rel="help"><em class="rfc2119">MUST</em>‐level
4033          error</a></d:text>          error</a></d:text>
4034    <d:text xml:lang="ja"><a href="../error-description#level-m"><em class="rfc2119" title="REQUIRED">必須</em>級の誤り</a></d:text>    <d:text xml:lang="ja"><a href="../error-description#Error-level-m" rel="help"><em class="rfc2119" title="REQUIRED">必須</em>級の誤り</a></d:text>
4035      <d:desc xml:lang="en">
4036        <p>A violation to a hard requirement of the specification.
4037        The document is non‐conforming.</p>
4038      </d:desc>
4039  </d:cat>  </d:cat>
4040    
4041  <d:cat name="Error level s">  <d:cat name="Error level s">
4042    <d:text xml:lang="en"><a href="../error-description#level-s"><em class="rfc2119">SHOULD</em>‐level    <d:text xml:lang="en"><a href="../error-description#Error-level-s" rel="help"><em class="rfc2119">SHOULD</em>‐level
4043          error</a></d:text>          error</a></d:text>
4044    <d:text xml:lang="ja"><a href="../error-description#level-s"><em class="rfc2119" title="RECOMMENDED">推奨</em>級の誤り</a></d:text>    <d:text xml:lang="ja"><a href="../error-description#Error-level-s" rel="help"><em class="rfc2119" title="RECOMMENDED">推奨</em>級の誤り</a></d:text>
4045      <d:desc xml:lang="en">
4046        <p>A violation to a requirement of the specification.
4047        The violation might be legitimize in some case.  Otherwise,
4048        the document is non‐conforming.</p>
4049      </d:desc>
4050  </d:cat>  </d:cat>
4051    
4052  <d:cat name="Error level w">  <d:cat name="Error level w">
4053    <d:text xml:lang="en"><a href="../error-description#level-w">Warning</a></d:text>    <d:text xml:lang="en"><a href="../error-description#Error-level-w" rel="help">Warning</a></d:text>
4054    <d:text xml:lang="ja"><a href="../error-description#level-w">警告</a></d:text>    <d:text xml:lang="ja"><a href="../error-description#Error-level-w" rel="help">警告</a></d:text>
4055      <d:desc xml:lang="en">
4056        <p>A warning is an advice from the conformance checker
4057        to avoid solving a problem in a confusing or possibly wrong way.
4058        It does not affect to the conformance of the document, and
4059        may sometimes be inappropriate.</p>
4060      </d:desc>
4061  </d:cat>  </d:cat>
4062    
4063  <d:cat name="Error level i">  <d:cat name="Error level i">
4064    <d:text xml:lang="en"><a href="../error-description#level-i">Information</a></d:text>    <d:text xml:lang="en"><a href="../error-description#Error-level-i" rel="help">Information</a></d:text>
4065    <d:text xml:lang="ja"><a href="../error-description#level-i">情報</a></d:text>    <d:text xml:lang="ja"><a href="../error-description#Error-level-i" rel="help">情報</a></d:text>
4066      <d:desc xml:lang="en">
4067        <p>An informational message just provides an additional information
4068        on the feature used in the document or the status of the retrieval
4069        or so on.
4070        It does not affect to the conformance of the document.</p>
4071      </d:desc>
4072  </d:cat>  </d:cat>
4073    
4074  <d:cat name="Error level u">  <d:cat name="Error level u">
4075    <d:text xml:lang="en"><a href="../error-description#level-u">Not    <d:text xml:lang="en"><a href="../error-description#Error-level-u" rel="help">Not
4076        supported</a></d:text>        supported</a></d:text>
4077    <d:text xml:lang="ja"><a href="../error-description#level-u">未対応</a></d:text>    <d:text xml:lang="ja"><a href="../error-description#Error-level-u" rel="help">未対応</a></d:text>
4078      <d:desc xml:lang="en">
4079        <p>Some feature that is not supported by the conformance checker
4080        is used in the document.</p>
4081      </d:desc>
4082  </d:cat>  </d:cat>
4083    
 <section id="levels">  
 <h2>Error Levels</h2>  
   
 <table id="levels-table">  
 <thead>  
 <tr><th scope="col">Level</th>  
 <th scope="col">Conforming?</th>  
 <th scope="col">Description</th>  
 </tr>  
 </thead>  
 <tbody>  
 <tr id="level-m" class="level-m">  
 <th scope="row"><em class="rfc2119">MUST</em>‐level error</th>  
 <td>Non‐conforming.</td>  
 <td>A violation to a hard requirement of the specification.  
 The document is non‐conforming.</td>  
 </tr>  
 <tr id="level-s" class="level-s">  
 <th scope="row"><em class="rfc2119">SHOULD</em>‐level error</th>  
 <td>Non‐conforming, but <em>in some case</em>  
 conforming.</td>  
 <td>A violation to a requirement of the specification.  
 The violation might be legitimize in some case.  Otherwise,  
 the document is non‐conforming.</td>  
 </tr>  
 <tr id="level-w" class="level-w">  
 <th scope="row">Warning</th>  
 <td>Conforming.</td>  
 <td>A warning is an advice from the conformance checker to avoid  
 to solve a problem in a confusing or possibly wrong way.  
 It does not affect to the conformance of the document, and  
 may sometimes be inappropriate.</td>  
 </tr>  
 <tr id="level-i" class="level-i">  
 <th scope="row">Information</th>  
 <td>Conforming.</td>  
 <td>An informational message just provides an additional information  
 on the feature used in the document or the status of the retrieval  
 or so on.  
 It does not affect to the conformance of the document.</td>  
 </tr>  
 <tr id="level-u" class="level-u">  
 <th scope="row">Not supported</th>  
 <td><em>Unknown</em>.</td>  
 <td>Some feature that is not supported by the conformance checker  
 is used in the document.</td>  
 </tr>  
 </tbody>  
 </table>  
 </section>  
   
4084  <section id="license">  <section id="license">
4085  <h2>License of This Document</h2>  <h2>License of This Document</h2>
4086    

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.42

[email protected]
ViewVC Help
Powered by ViewVC 1.1.24