/[pub]/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.5 by wakaba, Tue Jul 17 13:52:54 2007 UTC revision 1.11 by wakaba, Mon Sep 10 11:51:09 2007 UTC
# Line 28  Web Document Conformance Checker (BETA)< Line 28  Web Document Conformance Checker (BETA)<
28    </d:desc>    </d:desc>
29  </d:item>  </d:item>
30    
31    <d:item name="after body"
32        class="parse-error">
33      <d:message xml:lang="en">Tag <code>&lt;<var>$0</var>&gt;</code>
34      is not allowed after the end tag <code>&lt;/body></code>.</d:message>
35      <d:desc xml:lang="en">
36        <p>The start or end tag of an element appears after the
37        <code>body</code> element has been closed.  The document is
38        non-conforming.</p>
39    
40        <p>Any content of the document other than <code>head</code>
41        contents and comments must be put into the <code>body</code>
42        element.</p>
43      </d:desc>
44    </d:item>
45    
46  <d:item name="bare ero"  <d:item name="bare ero"
47      class="tokenize-error">      class="tokenize-error">
48    <d:message xml:lang="en">The <code>&amp;</code> character must    <d:message xml:lang="en">The <code>&amp;</code> character must
# Line 38  Web Document Conformance Checker (BETA)< Line 53  Web Document Conformance Checker (BETA)<
53      is not part of any reference appears in the input stream.      is not part of any reference appears in the input stream.
54      The document is non-conforming.</p>      The document is non-conforming.</p>
55    
56        <p><strong>Any <code>&amp;</code> character in URI (or IRI)
57        must be escaped as <code>&amp;amp;</code>.</strong></p>
58    
59      <p>The <code>&amp;</code> character must      <p>The <code>&amp;</code> character must
60      be the first character of a reference:      be the first character of a reference:
61        <dl>        <dl>
# Line 63  Web Document Conformance Checker (BETA)< Line 81  Web Document Conformance Checker (BETA)<
81    </d:desc>    </d:desc>
82  </d:item>  </d:item>
83    
84    <d:item name="bare etago"
85        class="tokenize-error">
86      <d:message xml:lang="en">A <code>&lt;/</code> string is not followed
87      by a tag name.</d:message><!-- </ EOF -->
88      <d:desc xml:lang="en">
89        <p>There is a <code>&lt;</code> (<code>U+003C</code>
90        <code class="charname">LESS-THAN SIGN</code>) character
91        immediately followed by a <code>/</code> (<code>U+005F</code>
92        <code>SOLIDUS</code>) character, which is not part
93        of any end tag, in the input stream.  The document
94        is non-conforming.</p>
95    
96        <p>The <code>&lt;/</code> sequence immediately followed
97        by an <abbr title="End of file pseudo-character">EOF</abbr> is
98        interpreted as a string data of <code>&lt;/</code>.</p>
99    
100        <p>The <code>&lt;/</code> sequence as string data must
101        be escaped as:
102        <pre class="html example"><code>&amp;lt;/</code></pre>
103        </p>
104      </d:desc>
105    </d:item>
106    
107  <d:item name="bare stago"  <d:item name="bare stago"
108      class="tokenize-error">      class="tokenize-error">
109    <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
110    by tag name or by a <code>!</code> character.</d:message>    by tag name or by a <code>!</code> character.</d:message>
111    <d:desc xml:lang="en">    <d:desc xml:lang="en">
112      <p>A <code>&lt;</code> (<code>U+003C</code> <code class="charname">LESS-THAN      <p>A <code>&lt;</code> (<code>U+003C</code>
113      SIGN</code>) character which is not part of any markup appears      <code class="charname">LESS-THAN SIGN</code>) character which is not part
114      in the input stream.</p>      of any markup appears in the input stream.</p>
115    
116      <p>The <code>&lt;</code> character as a data character must      <p>The <code>&lt;</code> character as a data character must
117      be escaped as:      be escaped as:
118      <pre class="html example"><code>&lt;lt;</code></pre>      <pre class="html example"><code>&amp;lt;</code></pre>
119      </p>      </p>
120    </d:desc>    </d:desc>
121  </d:item>  </d:item>
# Line 92  Web Document Conformance Checker (BETA)< Line 133  Web Document Conformance Checker (BETA)<
133      The document is non-conforming.</p>      The document is non-conforming.</p>
134    
135      <p>The string <code>&amp;#</code> must be the first two characters      <p>The string <code>&amp;#</code> must be the first two characters
     <code>NUMBER SIGN</code>) character must be the first two characters  
136      of a reference:      of a reference:
137        <dl>        <dl>
138        <dt>Numeric character reference</dt>        <dt>Numeric character reference</dt>
# Line 107  Web Document Conformance Checker (BETA)< Line 147  Web Document Conformance Checker (BETA)<
147      </p>      </p>
148    
149      <p>To represent <code>&amp;#</code> as data characters, use      <p>To represent <code>&amp;#</code> as data characters, use
150      named entity reference:      a named entity reference for the <code>&amp;</code> character:
151        <pre class="html example"><code>&amp;amp;#</code></pre>        <pre class="html example"><code>&amp;amp;#</code></pre>
152      </p>      </p>
153    </d:desc>    </d:desc>
# Line 129  Web Document Conformance Checker (BETA)< Line 169  Web Document Conformance Checker (BETA)<
169      of the code point of the character to be referenced.</p>      of the code point of the character to be referenced.</p>
170    
171      <p>To represent <code>&amp;#x</code> as data characters, use      <p>To represent <code>&amp;#x</code> as data characters, use
172      named entity reference:      a named entity reference for the <code>&amp;</code> character:
173        <pre class="html example"><code>&amp;amp;#x</code></pre>        <pre class="html example"><code>&amp;amp;#x</code></pre>
174      </p>      </p>
175    </d:desc>    </d:desc>
176  </d:item>  </d:item>
177    
178    <d:item name="bogus comment"
179        class="tokenize-error">
180      <d:message xml:lang="en">String <code>&lt;!</code> is not followed
181      by <code>--</code>.</d:message>
182      <d:desc xml:lang="en">
183        <p>There is a <code>&lt;</code> (<code>U+003C</code>
184        <code class="charname">LESS-THAN SIGN</code>) character
185        followed by a <code>!</code> (<code>U+0021</code>
186        <code class="charname">EXCLAMATION MARK</code>) character,
187        which is not followed by a <code>--</code> or
188        <code>!DOCTYPE</code>.  The document is non-conforming.</p>
189    
190        <dl class="switch">
191        <dt>Comments</dt>
192          <dd>In HTML documents, comments must be introduced by
193          <code>&lt;!--</code> (<code>&lt;!</code> <em>immediately</em> followed
194          by <em>two</em> <code>-</code>s) and must be terminated by
195          <code>--></code>.  Strings <code>&lt;!</code> not followed
196          by <code>--</code> and <code>&lt;!-</code> not followed by
197          <code>-</code> are not valid open delimiters for comments.</dd>
198        <dt>Marked sections, including <code>CDATA</code> sections</dt>
199          <dd>Marked sections are not allowed in HTML documents.</dd>
200        <dt>Markup declarations</dt>
201          <dd>Markup declarations, except <code>DOCTYPE</code>
202          and comment declarations, are not allowed in HTML documents.</dd>
203        <dt>String <code>&lt;!</code></dt>
204          <dd>String <code>&lt;!</code> must be escaped as
205          <code>&amp;lt;!</code>.</dd>
206        </dl>
207      </d:desc>
208    </d:item>
209    
210    <d:item name="bogus end tag"
211        class="tokenize-error">
212      <d:message xml:lang="en">String <code>&lt;/</code> is not followed
213      by tag name.</d:message><!-- </ non-name-start-char-non-EOF -->
214      <d:desc xml:lang="en">
215        <p>There is a <code>&lt;</code> (<code>U+003C</code>
216        <code class="charname">LESS-THAN SIGN</code>) character
217        immediately followed by a <code>/</code> (<code>U+005F</code>
218        <code>SOLIDUS</code>) character, which is not part
219        of any end tag, in the input stream.  The document
220        is non-conforming.</p>
221    
222        <p>The <code>&lt;/</code> sequence not followed by a
223        tag name is parsed as an opening of bogus comment.</p>
224    
225        <p>The <code>&lt;/</code> sequence as string data must
226        be escaped as:
227        <pre class="html example"><code>&amp;lt;/</code></pre>
228        </p>
229      </d:desc>
230    </d:item>
231    
232  <d:item name="dash in comment"  <d:item name="dash in comment"
233      class="tokenize-error">      class="tokenize-error">
234    <d:message xml:lang="en">There is a <code>--</code> sequence    <d:message xml:lang="en">There is a <code>--</code> sequence
# Line 154  Web Document Conformance Checker (BETA)< Line 248  Web Document Conformance Checker (BETA)<
248    
249  <d:item name="duplicate attribute"  <d:item name="duplicate attribute"
250      class="tokenize-error">      class="tokenize-error">
251    <d:message xml:lang="en">There are two attributes with same name.</d:message>    <d:message xml:lang="en">There are two attributes with name
252          <code><var>$0</var></code>.</d:message>
253    <d:desc xml:lang="en">    <d:desc xml:lang="en">
254      <p>There are more than one attributes with the same      <p>There are more than one attributes with the same
255      name in a tag.  The document is non-conforming.</p>      name in a tag.  The document is non-conforming.</p>
# Line 166  Web Document Conformance Checker (BETA)< Line 261  Web Document Conformance Checker (BETA)<
261    
262  <d:item name="nestc"  <d:item name="nestc"
263      class="tokenize-error">      class="tokenize-error">
264    <d:message xml:lang="en">Void element syntax (<code>/></code>) cannot be    <d:message xml:lang="en">Polytheistic slash (<code>/></code>) cannot be
265    used for this element.</d:message>    used for this element.</d:message>
266    <d:desc xml:lang="en">    <d:desc xml:lang="en">
267      <p>Void element syntax (<code>/></code>) must not be used      <p>Polytheistic slash (<code>/></code>) must not be used
268      for the element.  The document is non-conforming.</p>      for the element.  The document is non-conforming.</p>
269    
270      <p>The void element syntax can only be      <p>The polytheistic slash can only be
271      used for <code>base</code>, <code>link</code>, <code>meta</code>,      used for <code>base</code>, <code>link</code>, <code>meta</code>,
272      <code>hr</code>, <code>br</code>, <code>img</code>,      <code>hr</code>, <code>br</code>, <code>img</code>,
273      <code>embed</code>, <code>param</code>, <code>area</code>,      <code>embed</code>, <code>param</code>, <code>area</code>,
274      <code>col</code>, and <code>input</code> elements.</p>      <code>col</code>, and <code>input</code> elements.</p>
275    
276      <p>Note that, unlike in XML, the void element syntax has      <dl>
277        <dt><code>&lt;script/></code></dt>
278            <dd><p>The polytheistic slash cannot be used for <code>script</code>
279            element.  Even for an empty <code>script</code> element,
280            there must be an explicit end tag <code>&lt;/script></code>.</p>
281    
282            <p><strong>NOTE</strong>: Though some user agents interpret
283            polytheistic slash for <code>script</code> element as the
284            closing of the element, such usage is not allowed under
285            the current standard.</p></dd>
286        <dt><code>&lt;basefont/></code>, <code>&lt;bgsound/></code>,
287        <code>&lt;frame/></code>, <code>&lt;keygen/></code>,
288        <code>&lt;spacer/></code>, <code>&lt;wbr/></code></dt>
289            <dd>These elements are themselves non-conforming.</dd>
290        <!-- isindex, image -->
291        <dt><code>&lt;command/></code>, <code>&lt;event-source/></code>,
292        <code>&lt;source/></code></dt>
293            <dd>Future revision of HTML5 parsing algorithm is expected
294            to allow polytheistic slash for these elements.</dd>
295        <dt><code>&lt;a/></code>, <code>&lt;p/></code></dt>
296            <dd>These elements are not always empty and therefore
297            polytheistic slash is not allowed.</dd>
298        </dl>
299    
300        <p>Note that, unlike in XML, the polytheistic slash has
301      no effect in HTML.</p>      no effect in HTML.</p>
302    </d:desc>    </d:desc>
303  </d:item>  </d:item>
# Line 187  Web Document Conformance Checker (BETA)< Line 306  Web Document Conformance Checker (BETA)<
306  <d:item name="pio"  <d:item name="pio"
307      class="tokenize-error">      class="tokenize-error">
308    <d:message xml:lang="en">Processing instruction    <d:message xml:lang="en">Processing instruction
309    (<code>&lt;?<var>...</var>?></code>) cannot be used.</d:message>    (<code>&lt;?<var>...</var>></code>) cannot be used.</d:message>
310    <d:desc xml:lang="en">    <d:desc xml:lang="en">
311      <p>Processing instructions (<code>&lt;?<var>...</var>?></code>),      <p>Processing instructions (<code>&lt;?<var>...</var>?></code>),
312      including XML declaration (<code>&lt;?xml <var>...</var>?></code>)      including XML declaration (<code>&lt;?xml <var>...</var>?></code>)
313      and XML style sheet <abbr title="processing instruction">PI</abbr>      and XML style sheet <abbr title="processing instruction">PI</abbr>
314      (<code>&lt;xml-stylesheet <var>...</var>?></code>), are not allowed      (<code>&lt;?xml-stylesheet <var>...</var>?></code>), are not allowed
315      in the HTML syntax.  The document is non-conforming.</p>      in the HTML syntax.  The document is non-conforming.</p>
316    
317      <p>If it is necessary to embed a processing instruction      <dl>
318      in the HTML document, you must use the XML syntax instead.</p>      <dt><code>&lt;?xml?&gt;</code> (XML declaration)</dt>
319            <dd>XML declaration is unnecessary for HTML documents.</dd>
320      <p>In the HTML syntax, XML declaration is not necessary.</p>      <dt><code>&lt;?xml-stylesheet?></code> (XML style sheet
321        <abbr title="processing instruction">PI</abbr></dt>
322      <p>Instead of XML style sheet,          <dd>Use HTML <code>link</code> element with <code>rel</code>
323      <abbr title="processing instruction">PI</abbr>s, you must          attribute set to <code>stylesheet</code> (or,
324      use the HTML <code>link</code> element whose <code>rel</code>          <code>alternate stylesheet</code> for an alternate style
325      attribute is set to <code>stylesheet</code> (or <code>alternate          sheet).</dd>
326      stylesheet</code> for an aleternate style sheet).</p>      <dt><code>&lt;?php?&gt;</code> (PHP code)</dt>
327            <dd>The conformance checker does <em>not</em> support
328            checking for PHP source documents.</dd>
329        <dt>Other processing instructions</dt>
330            <dd>Processing instructions cannot be inserted in an HTML
331            document.  Use XML document or insert
332            <code>ProcessingInstruction</code> node by scripting.</dd>
333        </dl>
334    
335      <p>Web browsers will parse processing instructions as bogus      <p>Web browsers will parse processing instructions as bogus
336      comments.  Some legacy Web browsers, such as IE:mac and      comments.  Some legacy Web browsers, such as IE:mac and
337      some mobile browsers, will display processing instructions      some mobile Web browsers, will display processing instructions
338      as string.</p>      as string.</p>
339    </d:desc>    </d:desc>
340  </d:item>  </d:item>
# Line 258  Web Document Conformance Checker (BETA)< Line 384  Web Document Conformance Checker (BETA)<
384  <d:item name="in body"  <d:item name="in body"
385      class="parse-error">      class="parse-error">
386    <d:message xml:lang="en">Tag <code>&lt;<var>$0</var>&gt;</code>    <d:message xml:lang="en">Tag <code>&lt;<var>$0</var>&gt;</code>
387    is not allowed in a <code>body</code> element.</d:message>    is not allowed in the <code>body</code> element.</d:message>
388    <d:desc xml:lang="en">    <d:desc xml:lang="en">
389      <p>The start or end tag of an element, which      <p>The start or end tag of an element, which
390      cannot be a descendant of <code>body</code> element, appears      cannot be a descendant of <code>body</code> element, appears
# Line 269  Web Document Conformance Checker (BETA)< Line 395  Web Document Conformance Checker (BETA)<
395    
396  <d:item name="in head:head"  <d:item name="in head:head"
397      class="parse-error">      class="parse-error">
398    <d:message xml:lang="en">Start tag <code>&lt;<var>head</var>&gt;</code>    <d:message xml:lang="en">Start tag <code>&lt;head&gt;</code>
399    is not allowed in the <code>head</code> element.</d:message>    is not allowed in the <code>head</code> element.</d:message>
400    <d:desc xml:lang="en">    <d:desc xml:lang="en">
401      <p>There is a start tag <code>&lt;head></code> in the      <p>There is a start tag <code>&lt;head></code> in the
# Line 333  Web Document Conformance Checker (BETA)< Line 459  Web Document Conformance Checker (BETA)<
459    
460  <d:item name="no DOCTYPE"  <d:item name="no DOCTYPE"
461      class="parse-error">      class="parse-error">
462    <d:message xml:lang="en">This document does not start with the    <d:message xml:lang="en">This document does not start with a
463    <code>DOCTYPE</code>.</d:message>    <code>DOCTYPE</code>.</d:message>
464    <d:desc>    <d:desc>
465      <p>The document does not start with a <code>DOCTYPE</code>.      <p>The document does not start with a <code>DOCTYPE</code>.
# Line 356  Web Document Conformance Checker (BETA)< Line 482  Web Document Conformance Checker (BETA)<
482      <p>End tag of an element is not found before, for example,      <p>End tag of an element is not found before, for example,
483      an end tag of another element appears or      an end tag of another element appears or
484      the end of the document.  The document is non-conforming.</p>      the end of the document.  The document is non-conforming.</p>
485    
486        <p>Only <code>body</code>, <code>colgroup</code>, <code>dd</code>,
487        <code>dt</code>, <code>head</code>, <code>html</code>, <code>li</code>,
488        <code>ol</code>, <code>option</code>, <code>optgroup</code>,
489        <code>p</code>, <code>rb</code>, <code>rp</code>, <code>rt</code>,
490        <code>tbody</code>, <code>td</code>, <code>tfoot</code>,
491        <code>th</code>, <code>thead</code>, <code>tr</code>,
492        <code>ul</code> end tag can be omitted in HTML documents.
493        For any element except for void element, there must be an explicit
494        end tag.</p>
495    
496        <p>Note that misnesting tags, such as
497        <code class="bad example">&lt;a>&lt;b>&lt;/a>&lt;/b></code>, are not
498        allowed and they also cause this error.</p>
499      </d:desc>
500    </d:item>
501    
502    <d:item name="not first start tag"
503        class="parse-error">
504      <d:message xml:lang="en">This <code>&lt;html></code> tag is not
505      the first start tag.</d:message>
506      <d:desc>
507        <p>There is a start tag of the <code>html</code> element
508        that it not the first start tag in the input stream.
509        The document is non-conforming.</p>
510    
511        <p>In an HTML document, there cannot be more than one
512        <code>html</code> element and therefore there cannot be
513        more than one <code>&lt;html></code> tag.  In addition,
514        nothing can be placed before the <code>&lt;html></code> tag
515        except a <code>DOCTYPE</code>, white space characters,
516        and comments.</p>
517    </d:desc>    </d:desc>
518  </d:item>  </d:item>
519    
# Line 365  Web Document Conformance Checker (BETA)< Line 523  Web Document Conformance Checker (BETA)<
523    HTML.</d:message>    HTML.</d:message>
524    <d:desc xml:lang="en">    <d:desc xml:lang="en">
525      <p>The document contains a <code>DOCTYPE</code> declaration      <p>The document contains a <code>DOCTYPE</code> declaration
526      that is different from HTML5 <code>DOCTYPE</code> (i.e. <code>&lt;!DOCTYPE      that is different from HTML5 <code>DOCTYPE</code> (i.e.
527      HTML&gt;</code>).  The document is non-conforming.</p>      <code>&lt;!DOCTYPE HTML&gt;</code>).  The document is non-conforming.</p>
528    
529      <p>The document might or might not be conformant to      <p>The document might or might not be conformant to
530      some version of HTML.  However, conformance to any HTML      some version of HTML.  However, conformance to any HTML
# Line 403  Web Document Conformance Checker (BETA)< Line 561  Web Document Conformance Checker (BETA)<
561      context.  The document is non-conforming.</p>      context.  The document is non-conforming.</p>
562    
563      <p>Possible causes:      <p>Possible causes:
564        <dl>        <ul>
565        <dt>If the erred element is an inline-level element (such        <li><p>A data character cannot be a child
566        as <code>a</code> or <code>span</code>)</dt>        of certain sectioning elements such as <code>body</code>,
567            <dd><p>A data character cannot be a child        <code>section</code>, and <code>blockquote</code>.</p>
568            of certain sectioning elements such as <code>body</code>,  
569            <code>section</code>, and <code>blockquote</code>.</p>        <p>Any inline-level content must be put
570          in e.g. paragraph element such as <code>p</code>.</p></li>
571            <p>Any inline-level content must be put        <li><p>Though some elements such as <code>div</code>,
572            in e.g. paragraph element such as <code>p</code>.</p></dd>        <code>li</code>, and <code>td</code> allow
573        <dt>If the erred element is a block-level element (such as        <em>either one</em> of block-level or inline-level content
574        <code>div</code> or <code>h<var>n</var></code>)</dt>        is allowed.  If there is a block-level content,
575            <dd><p>Though some elements such as <code>div</code>,        any inline-level content must be put
576            <code>li</code>, and <code>td</code> allow        in e.g. paragraph element such as <code>p</code>.</p></li>
577            <em>either one</em> of block-level or inline-level content        </ul>
           is allowed.  If there is a block-level content,  
           any inline-level content must be put  
           in e.g. paragraph element such as <code>p</code>.</p></dd>  
       </dl>  
578      </p>      </p>
579    </d:desc>    </d:desc>
580  </d:item>  </d:item>
# Line 465  Web Document Conformance Checker (BETA)< Line 619  Web Document Conformance Checker (BETA)<
619      <p>An element appears where it is not allowed.  The document      <p>An element appears where it is not allowed.  The document
620      is non-conforming.</p>      is non-conforming.</p>
621    
     <p><strong>Note</strong>: The conformance checker does  
     <em>not</em> support form elements yet.</p>  
   
622      <p>Possible causes:      <p>Possible causes:
623        <dl>        <dl class="switch">
624        <dt>If the erred element is an inline-level element (such        <dt>If the element with the error is an inline-level element,
625        as <code>a</code> or <code>span</code>)</dt>        such as <code>a</code>, <code>progress</code>, or <code>img</code></dt>
626            <dd><p>An inline-level element cannot be a child            <dd><p>An inline-level element cannot be a child
627            of certain sectioning elements such as <code>body</code>,            of certain sectioning elements such as <code>body</code>,
628            <code>section</code>, and <code>blockquote</code>.</p>            <code>section</code>, and <code>blockquote</code>.</p>
629    
630            <p>Any inline-level content must be put            <p>Any inline-level content must be put
631            in e.g. paragraph element such as <code>p</code>.</p></dd>            in e.g. paragraph element such as <code>p</code>.</p></dd>
632        <dt>If the erred element is a block-level element (such as        <dt>If it is a block-level elements, such as <code>aside</code>,
633        <code>div</code> or <code>h<var>n</var></code>)</dt>        <code>div</code>, <code>h<var>n</var></code>,
634            <dd><p>Though some elements such as <code>div</code>,        <code>p</code>, or <code>section</code></dt>
635            <code>li</code>, and <code>td</code> allow            <dd><dl class="switch">
636            <em>either one</em> of block-level or inline-level content                <dt>If the parent element is <code>div</code>,
637            is allowed.  If there is a block-level content,                <code>li</code>, <code>td</code>, or <code>th</code></dt>
638            any inline-level content must be put                <!-- @@ TODO: more... -->
639            in e.g. paragraph element such as <code>p</code>.</p></dd>                    <!-- @@ TODO: <p><ul><li><p> -->
640        <dt>If the erred element is the root <code>html</code> element</dt>                    <dd><p>The parent element allows <em>either</em>
641                      block-level or inline-level content.  If there is a
642                      block-level content, any inline-level content must be
643                      put in e.g. paragraph element such as <code>p</code>.</p>
644                      <p>For example, an HTML document fragment
645                      <code class="bad example">&lt;div>&lt;p>Hello!&lt;/p> World!&lt;/div></code>
646                      is non-conforming, since a word <q>World!</q> does not belong
647                      to any paragraph.  (If not part of any paragraph, what is
648                      it!?)  A conforming example would be:
649                        <pre class="example"><code>&lt;div>&lt;p>Hello!&lt;/p> &lt;p>World!&lt;/p>&lt;/div></code></pre>
650                      </p></dd>
651                  <dt>If the parent element does <em>not</em> allow
652                  block-level elements as content</dt>
653                      <dd>The element is not allowed to be inserted here.
654                      For example, a <code>div</code> element cannot be
655                      a child of an <code>h1</code> element.</dd>
656              </dl></dd>
657          <dt>If the element with the error is a <code>noscript</code> element</dt>
658              <dd>The <code>noscript</code> element is allowed only in the context
659              where a block-level or inline-level content is expected
660              and in the <code>head</code> element.
661              It cannot be used in e.g. <code>ul</code>, <code>table</code>,
662              or <code>select</code>.</dd>
663          <dt>If the element with the error is the <code>html</code> element
664          that is the root element of an XHTML document</dt>
665            <dd><p>In an XHTML document, the root <code>html</code>            <dd><p>In an XHTML document, the root <code>html</code>
666            element must have an <code>xmlns</code> attribute            element must have an <code>xmlns</code> attribute
667            whose value is set to            whose value is set to
668            <code>http://www.w3.org/1999/xhtml</code>.</p></dd>            <code>http://www.w3.org/1999/xhtml</code>.</p></dd>
669          <dt>If the element with the error is <code>blink</code>,
670          <code>center</code>, or <code>marquee</code> element</dt>
671              <dd>These elements are not part of the HTML standard.
672              Use CSS for styling control.</dd>
673    
674          <dt><code>button</code>, <code>datalist</code>,
675          <code>fieldset</code>, <code>form</code>,
676          <code>input</code>, <code>label</code>,
677          <code>optgroup</code>, <code>option</code>, <code>output</code>,
678          <code>rb</code>, <code>rp</code>, <code>rt</code>, <code>ruby</code>,
679          <code>textarea</code>, or <code>textarea</code> element</dt>
680          <!-- rbc, rtc ? -->
681              <dd>These elements are intentionally not supported by the conformance
682              checker <em>yet</em>.</dd>
683        </dl>        </dl>
684      </p>      </p>
685    </d:desc>    </d:desc>
686  </d:item>  </d:item>
687    
688    <d:item name="ps element missing"
689        class="content-model-error">
690      <d:message xml:lang="en">There is no <code><var>$0</var></code>
691      element before this element.</d:message>
692      <d:desc xml:lang="en">
693        <p>There must be an element before another element, but there
694        is not.  The document is non-conforming.</p>
695    
696        <p>For example, there must be a <code>dt</code> element
697        before any <code>dd</code> element.</p>
698      </d:desc>
699    </d:item>
700    
701  </section>  </section>
702    
703  <section id="attribute-errors">  <section id="attribute-errors">
# Line 510  Web Document Conformance Checker (BETA)< Line 712  Web Document Conformance Checker (BETA)<
712      is non-conforming.</p>      is non-conforming.</p>
713    
714      <p>Some attribute is defined as <i>required</i>.      <p>Some attribute is defined as <i>required</i>.
     For example, any <code>img</code> element must have  
     <code>alt</code> and <code>src</code> attributes specified.  
715      Without required attributes specified, user agents      Without required attributes specified, user agents
716      cannot provide the full functionality of the element      cannot provide full functionality of the element to the user.</p>
717      to the user.</p>  
718        <dl class="switch">
719        <dt>HTML <code>img</code> element</dt>
720            <dd>The <code>src</code> attribute must be specified.
721            Additionally, the <code>alt</code> attribute must be specified
722            in many cases.</dd>
723        <dt>HTML <code>link</code> element</dt>
724            <dd>The <code>rel</code> attribute must be specified.
725            Note that the <code>rev</code> attribute is obsolete.</dd>
726        </dl>
727      </d:desc>
728    </d:item>
729    
730    <d:item name="attribute not allowed" class="attribute-error">
731      <d:message xml:lang="en">Attribute
732      <code><var>{local-name}</var></code> is not allowed for
733      <code><var>{element-local-name}</var></code> element.</d:message>
734      <d:desc xml:lang="en">
735        <p>An attribute is specified where it is not allowed.
736        The document is non-conforming.</p>
737    
738        <dl>
739        <dt>HTML <code>meta</code> element</dt>
740            <dd>For HTML <code>meta</code> element, <em>only one</em> of
741            <code>name</code>, <code>http-equiv</code>, or <code>charset</code>
742            attribute is allowed.</dd>
743        </dl>
744    </d:desc>    </d:desc>
745  </d:item>  </d:item>
746    
# Line 522  Web Document Conformance Checker (BETA)< Line 748  Web Document Conformance Checker (BETA)<
748      class="attribute-error">      class="attribute-error">
749    <d:message xml:lang="en">The <code>xml:lang</code> attribute is not    <d:message xml:lang="en">The <code>xml:lang</code> attribute is not
750    allowed in HTML document.</d:message>    allowed in HTML document.</d:message>
751    <d:desc>    <d:desc xml:lang="en">
752      <p>The <code>xml:lang</code> attribute is not allowed in      <p>The <code>xml:lang</code> attribute is not allowed in
753      HTML document.  The document is non-conforming.</p>      HTML document.  The document is non-conforming.</p>
754    
755      <p>The <code>lang</code> attribute in the <code>null</code>      <p>Use of the <code>xml:lang</code> attribute is conforming
756      namespace for HTML elements is defined as conforming <em>only</em> for      <em>only</em> in XML documents.</p>
     XML document.</p>  
757    
758      <p>To specify natural language information in HTML document,      <p>To specify natural language information in HTML document,
759      use <code>lang</code> attribute instead.</p>      use <code>lang</code> attribute instead.</p>
760    
761        <p>XHTML 1.0 Appendix C was encouraged to specify both
762        <code>lang</code> and <code>xml:lang</code> attributes with
763        the same value.  Such a duplication has <em>no effect</em> in practice.
764        Use only one of <code>lang</code> (in HTML) or <code>xml:lang</code> (in
765        XML).</p>
766    
767      <!-- @@ ISSUE: xml:lang in non-HTML element in DOM5 HTML created      <!-- @@ ISSUE: xml:lang in non-HTML element in DOM5 HTML created
768           from an HTML document? -->           from an HTML document? -->
769    </d:desc>    </d:desc>
# Line 562  Web Document Conformance Checker (BETA)< Line 794  Web Document Conformance Checker (BETA)<
794      XML document.  The document is non-conforming.</p>      XML document.  The document is non-conforming.</p>
795    
796      <p>The <code>lang</code> attribute in <code>null</code>      <p>The <code>lang</code> attribute in <code>null</code>
797      namespace for HTML elements is defined as conforming <em>only</em> for      namespace for HTML elements is conforming <em>only</em> in
798      HTML document.</p>      HTML documents.</p>
799    
800      <p>To specify natural language information in XML document,      <p>To specify natural language information in XML document,
801      use <code>xml:lang</code> attribute instead.</p>      use <code>xml:lang</code> attribute instead.</p>
# Line 579  Web Document Conformance Checker (BETA)< Line 811  Web Document Conformance Checker (BETA)<
811      <p>The <code>xmlns</code> attribute in the <code>null</code>      <p>The <code>xmlns</code> attribute in the <code>null</code>
812      namespace is not allowed in XHTML document.</p>      namespace is not allowed in XHTML document.</p>
813    
814      <p>This error should not occur in conformance-checking      <p>This error should not occur in conformance-checking of
815      static documents.</p>      static documents.</p>
816    </d:desc>    </d:desc>
817  </d:item>  </d:item>
# Line 592  Web Document Conformance Checker (BETA)< Line 824  Web Document Conformance Checker (BETA)<
824  <d:item name="enumerated:invalid"  <d:item name="enumerated:invalid"
825      class="attribute-value-error">      class="attribute-value-error">
826    <d:message xml:lang="en">This attribute only allow a limited set of    <d:message xml:lang="en">This attribute only allow a limited set of
827    values and the specified value is not one of them.</d:message>    values and the specified value <code><var>{@}</var></code> is not one
828      of them.</d:message>
829      <d:desc xml:lang="en">
830        <p>For this attribute only several values are allowed and the
831        value of the attribute is not one of them.  The document
832        is non-conforming.</p>
833    
834        <dl>
835        <dt>HTML <code>meta</code> element, <code>http-equiv</code> attribute</dt>
836            <dd><p>Only <code>Default-Style</code> and <code>Refresh</code>
837            is allowed.</p>
838            <p>Value <code>Content-Type</code> is obsolete; for charset
839            declaration, the <code>charset</code> attribute can be used as:
840            <pre class="html example"><code>&lt;meta charset="<var>charset-name</var>"></code></pre>
841            ... where <var>charset-name</var> is a name of the character encoding
842            of the document, such as <code>utf-8</code>.</p>
843            <p>Values <code>Content-Style-Type</code> and
844            <code>Content-Script-Type</code> are currently not allowed.</p>
845            <p>Value <code>Keywords</code> is not allowed.  Use
846            <code>name</code> attribute instead of <code>http-equiv</code>
847            attribute.</p>
848            <p>Values <code>Expires</code>, <code>Pragma</code>,
849            and <code>Cache-Control</code> are not allowed;
850            use <em>real</em> HTTP header fields for cache control.</p></dd>
851        </dl>
852      </d:desc>
853  </d:item>  </d:item>
854    
855  <d:item name="duplicate ID"  <d:item name="duplicate ID"
# Line 624  Web Document Conformance Checker (BETA)< Line 881  Web Document Conformance Checker (BETA)<
881    <d:message xml:lang="en">The link type <code><var>$0</var></code>    <d:message xml:lang="en">The link type <code><var>$0</var></code>
882    is non-conforming.</d:message>    is non-conforming.</d:message>
883    <d:desc xml:lang="en">    <d:desc xml:lang="en">
884      <p>The specified link type is non-conforming.  The entire document      <p>The specified link type is non-conforming, and therefore
885      is non-conforming.</p>      the document is non-conforming.</p>
886    
887      <p>For example, in place of non-conforming link type <code>copyright</code>      <dl>
888      you must use link type <code>license</code>.</p>      <dt>Link type <code>contents</code></dt>
889          <dd>Use link type <code>index</code>.</dd>
890        <dt>Link type <code>copyright</code></dt>
891          <dd>Use link type <code>license</code>.</dd>
892        <dt>Link type <code>home</code></dt>
893          <dd>Use link type <code>index</code>.</dd>
894        <dt>Link type <code>start</code></dt>
895          <dd>Use link type <code>first</code>.</dd>
896        <dt>Link type <code>toc</code></dt>
897          <dd>Use link type <code>index</code>.</dd>
898        </dl>
899    </d:desc>    </d:desc>
900  </d:item>  </d:item>
901    
902  <d:item name="reserved browsing context name"  <d:item name="reserved browsing context name"
903      class="attribute-value-error">      class="attribute-value-error">
904    <d:message xml:lang="en">This browsing context name is reserved.</d:message>    <d:message xml:lang="en">Browsing context name
905    <d:item>    <code><var>{@}</var></code> is reserved.</d:message>
906      <d:desc xml:lang="en">
907      <p>The specified browsing context name is reserved.      <p>The specified browsing context name is reserved.
908      The document is non-conforming.</p>      The document is non-conforming.</p>
909    
# Line 648  Web Document Conformance Checker (BETA)< Line 916  Web Document Conformance Checker (BETA)<
916      browsing context names <code>_blank</code>,      browsing context names <code>_blank</code>,
917      <code>_main</code>, and <code>_replace</code>.      <code>_main</code>, and <code>_replace</code>.
918      However, they are <em>not</em> conforming attribute values.</p>      However, they are <em>not</em> conforming attribute values.</p>
919    </d:item>    </d:desc>
920  </d:item>  </d:item>
921    
922  </section>  </section>
# Line 692  Web Document Conformance Checker (BETA)< Line 960  Web Document Conformance Checker (BETA)<
960    <code>th</code>) in the last row.</d:message>    <code>th</code>) in the last row.</d:message>
961  </d:item>  </d:item>
962    
963    <d:item name="table:rowspan extends table"
964        class="table-model-error">
965      <d:message xml:lang="en">This <code>rowspan</code> attribute
966      results in creating a table row that does not contain
967      any cell anchored to it.</d:message>
968      <d:desc xml:lang="en">
969        <p>The <code>rowspan</code> attribute value of the cell
970        is so specified that it extends a table in the row axis.
971        However, the extended row does not contain any cell by itself.
972        The document is non-conforming.</p>
973    
974        <p>For example, the table below is non-conforming:
975          <pre class="html non-conforming example"><code>&lt;table>
976    &lt;tbody>
977    &lt;tr>&lt;td rowspan=2>&lt;/td>&lt;/tr>
978    &lt;/tbody>
979    &lt;/table></code></pre>
980        ... since the second row contains only
981        a cell that spans between first and second rows.</p>
982      </d:desc>
983    </d:item>
984    
985  </section>  </section>
986    
987  <section id="imt-warnings">  <section id="imt-warnings">
# Line 699  Web Document Conformance Checker (BETA)< Line 989  Web Document Conformance Checker (BETA)<
989    
990  <d:item name="IMT:obsolete subtype"  <d:item name="IMT:obsolete subtype"
991      class="should" level="s">      class="should" level="s">
992    <d:message xml:lang="en">An <em>obsolete</em> subtype is used.</d:message>    <d:message xml:lang="en"><code><var>{@}</var></code>: An <em>obsolete</em>
993      subtype is used.</d:message>
994  </d:item>  </d:item>
995    
996  <d:item name="IMT:private subtype"  <d:item name="IMT:private subtype"
997      class="should" level="s">      class="should" level="s">
998    <d:message xml:lang="en">A private (<code>x-</code> or <code>x.</code>)    <d:message xml:lang="en"><code><var>{@}</var></code>: A private
999    subtype is used.</d:message>    (<code>x-</code> or <code>x.</code>) subtype is used.</d:message>
1000  </d:item>  </d:item>
1001    
1002  <d:item name="IMT:unregistered subtype"  <d:item name="IMT:unregistered subtype"
1003      class="should" level="s">      class="should" level="s">
1004    <d:message xml:lang="en">The subtype is not registered to IANA.</d:message>    <d:message xml:lang="en"><code><var>{@}</var></code>: The subtype is
1005      not registered to IANA.</d:message>
1006  <!-- TODO: Unknown message?? -->  <!-- TODO: Unknown message?? -->
1007  </d:item>  </d:item>
1008    
# Line 721  Web Document Conformance Checker (BETA)< Line 1013  Web Document Conformance Checker (BETA)<
1013    
1014  <d:item name="URI::syntax error"  <d:item name="URI::syntax error"
1015      class="must" level="m">      class="must" level="m">
1016    <d:message xml:lang="en">This string is syntactically not an IRI.</d:message>    <d:message xml:lang="en">The specified value is syntactically not an IRI
1017      reference.</d:message>
1018      <d:desc xml:lang="en">
1019        <p>The specified value does not satisfy the syntactical requirements
1020        for IRI references.  The document is non-conforming.</p>
1021    
1022        <p>Possible causes:
1023          <ul>
1024          <li>The string might contain one or more white space characters.
1025          Especially, the <code> </code> (<code>U+0020</code>
1026          <code class="charname">SPACE</code>) character cannot be
1027          used in IRI references.</li>
1028          </ul>
1029        </p>
1030      </d:desc>
1031  </d:item>  </d:item>
1032    
1033  </section>  </section>
1034    
1035  <section id="uri-warnings">  <section id="uri-shoulds">
1036  <h2>URI (or IRI) Warnings</h2>  <h2>URI (or IRI) Should-level Errors</h2>
1037    
1038  <d:item name="URI::dot-segment"  <d:item name="URI::dot-segment"
1039      class="should" level="s">      class="should" level="s">
1040    <d:message xml:lang="en">Dot-segment (<code>.</code> or    <d:message xml:lang="en">A dot-segment (<code>.</code> or
1041    <code>..</code>) should not occur in an absolute reference.</d:message>    <code>..</code>) occurs in an absolute reference.</d:message>
1042    <d:desc>    <d:desc>
1043      <p>Dot-segment (<code>.</code> or <code>..</code>) should      <p>Dot-segment (<code>.</code> or <code>..</code>) should
1044      not occur in an absolute reference.</p>      not occur in an absolute reference.</p>
# Line 747  Web Document Conformance Checker (BETA)< Line 1053  Web Document Conformance Checker (BETA)<
1053    
1054  <d:item name="URI::empty path"  <d:item name="URI::empty path"
1055      class="should" level="s">      class="should" level="s">
1056    <d:message xml:lang="en">This IRI should explicitly end with    <d:message xml:lang="en">This IRI does not end with
1057    <code>/</code>.</d:message>    a <code>/</code>.</d:message>
1058  </d:item>  </d:item>
1059    
1060  <d:item name="URI::lowercase hexadecimal digit"  <d:item name="URI::lowercase hexadecimal digit"
1061      class="should" level="s">      class="should" level="s">
1062    <d:message xml:lang="en">Hexadecimal digit in percent-encoding    <d:message xml:lang="en">A lowercase hexadecimal digit is used
1063    should be in lowercase.</d:message>    in percent-encoding.</d:message>
1064    <d:desc xml:lang="en">    <d:desc xml:lang="en">
1065      <p>The hexadecimal digit in percent-encoding string in the IRI      <p>The hexadecimal digit in percent-encoding string in the IRI
1066      is in lowercase.  Though the IRI <em>is</em> conforming,      is in lowercase.  Though the IRI <em>is</em> conforming,
# Line 773  Web Document Conformance Checker (BETA)< Line 1079  Web Document Conformance Checker (BETA)<
1079    </d:desc>    </d:desc>
1080  </d:item>  </d:item>
1081    
1082    <d:item name="URI::uppercase scheme name"
1083        class="should" level="s">
1084      <d:message xml:lang="en">URI scheme name is in uppercase.</d:message>
1085      <d:desc xml:lang="en">
1086        <p>The scheme part of the IRI is written in uppercase letter.</p>
1087    
1088        <p>Uppercase scheme names are not required to be processed
1089        correctly.</p>
1090    <!-- @@
1091     RFC 3986 3.1.
1092     > Although schemes are case-
1093       insensitive, the canonical form is lowercase and documents that
1094       specify schemes must do so with lowercase letters.
1095    
1096     > An implementation ... should only produce lowercase scheme names for
1097       consistency.
1098    -->
1099      </d:desc>
1100    </d:item>
1101    
1102  </section>  </section>
1103    
1104  <section id="unsupported-messages">  <section id="unsupported-messages">
1105  <h2><i>Unsupported</i> Messages</h2>  <h2><i>Unsupported</i> Messages</h2>
1106    
1107  <d:item name="attribute"  <d:item name="element"
1108      class="unsupported" level="unsupported">      class="unsupported" level="unsupported">
1109    <d:message xml:lang="en">This attribute is not supported by the    <d:message xml:lang="en">Conformance checking for element
1110    conformance checker; <em>it might or might not be conforming</em>.</d:message>    <code><var>{local-name}</var></code> is not supported; <em>it might or
1111      might not be conforming</em>.</d:message>
1112    <d:desc xml:lang="en">    <d:desc xml:lang="en">
1113      <p>The conformant checker does not support the attribute.      <p>The conformant checker does not support the element.
1114      It cannot determine whether the document is conforming or not.</p>      It cannot determine whether the document is conforming or not.</p>
1115    </d:desc>    </d:desc>
1116  </d:item>  </d:item>
1117    
1118  <d:item name="element"  <d:item name="attribute"
1119      class="unsupported" level="unsupported">      class="unsupported" level="unsupported">
1120    <d:message xml:lang="en">This element is not supported by the    <d:message xml:lang="en">Conformance checking for attribute
1121    conformance checker; <em>it might or might not be conforming</em>.</d:message>    <code><var>{local-name}</var></code> of element
1122      <code><var>{element-local-name}</var></code> is not supported;
1123      <em>it might or might not be conforming</em>.</d:message>
1124    <d:desc xml:lang="en">    <d:desc xml:lang="en">
1125      <p>The conformant checker does not support the element.      <p>The conformant checker does not support the attribute.
1126      It cannot determine whether the document is conforming or not.</p>      It cannot determine whether the document is conforming or not.</p>
1127    </d:desc>    </d:desc>
1128  </d:item>  </d:item>
1129    
1130  <d:item name="link type"  <d:item name="link type"
1131      class="unsupported" level="unsupported">      class="unsupported" level="unsupported">
1132    <d:message xml:lang="en">The link type <code><var>$0</var></code> is not    <d:message xml:lang="en">Link type <code><var>$0</var></code> is not
1133    standardized or registered at the time of the release of the conformance    standardized or registered at the time of the release of the conformance
1134    checker; <em>it is non-conforming unless it has now been    checker; <em>it is non-conforming unless it now has been
1135    registered</em>.</d:message>    registered</em>.</d:message>
1136    <d:desc xml:lang="en">    <d:desc xml:lang="en">
1137      <p>The <code>rel</code> attribute is defined as a list of link types.      <p>The <code>rel</code> attribute is defined as a list of link types.
# Line 815  Web Document Conformance Checker (BETA)< Line 1144  Web Document Conformance Checker (BETA)<
1144      The link type might have been added to the registry since then.      The link type might have been added to the registry since then.
1145      In such case it might be conforming.  Otherwise, the      In such case it might be conforming.  Otherwise, the
1146      document is non-conforming.</p>      document is non-conforming.</p>
1147    
1148        <dl>
1149        <dt>Link types <code>shortcut icon</code></dt>
1150            <dd>Link type <code>shortcut</code> is not registered.
1151            Use only <code>icon</code> for linking to so-called favicon.</dd>
1152        </dl>
1153    </d:desc>    </d:desc>
1154  </d:item>  </d:item>
1155    
# Line 864  manakaiIsHTML:0;;XML Document Line 1199  manakaiIsHTML:0;;XML Document
1199  <section id="license">  <section id="license">
1200  <h2>License of This Document</h2>  <h2>License of This Document</h2>
1201    
1202  <p>Copyright 2007 <a href="http://suika.fam.cx/~wakaba/who?">Wakaba</a></p>  <p>Copyright 2007 <a href="http://suika.fam.cx/~wakaba/who?" rel="author" xml:lang="ja">Wakaba</a></p>
1203  <p>This library is free software; you can redistribute it  <p>This document is free software; you can redistribute it
1204  and/or modify it under the same terms as Perl itself.</p>  and/or modify it under the same terms as Perl itself.</p>
1205  </section>  </section>
1206    

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.11

[email protected]
ViewVC Help
Powered by ViewVC 1.1.24