179 |
|
|
180 |
<div class="section" id="bad-attribute-value"><h3>Attribute value must be quoted by <code>"</code> |
<div class="section" id="bad-attribute-value"><h3>Attribute value must be quoted by <code>"</code> |
181 |
or <code>'</code> if it contains a <code>"</code>, <code>'</code>, or |
or <code>'</code> if it contains a <code>"</code>, <code>'</code>, or |
182 |
<code>=</code> character.</h3></div> |
<code>=</code> character.</h3> |
183 |
|
<p>In an unquoted attribute value, a character <code>"</code> |
184 |
|
(<code>U+0022</code> <code class="charname">QUOTATION MARK</code>), |
185 |
|
<code>'</code> (<code>U+0026</code> |
186 |
|
<code class="charname">APOSTROPHE</code>), or <code>=</code> |
187 |
|
(<code>U+003D</code> <code class="charname">EQUAL SIGN</code>) |
188 |
|
is contained. These characters are not allowed in unquoted attribute |
189 |
|
values, since they are used to quote attribute values or to separate |
190 |
|
attribute name and value.</p> |
191 |
|
|
192 |
|
<p>This error is also raised if one try to use empty attribute |
193 |
|
value like <code class="html bad example"><foo bar= baz=></code>; |
194 |
|
in this example, <code class="html bad example">baz=</code> is |
195 |
|
treated as an invalid attribute value for the attribute |
196 |
|
<code class="html bad example">bar</code>, not as another attribute.</p> |
197 |
|
</div> |
198 |
|
|
199 |
<div class="section" id="bare-ero"><h3>The <code>&</code> character must |
<div class="section" id="bare-ero"><h3>The <code>&</code> character must |
200 |
be escaped as <code class="html example">&amp;</code>.</h3> |
be escaped as <code class="html example">&amp;</code>.</h3> |
402 |
<div class="section" id="empty-end-tag"><h3>Empty end tag (<code></></code>) is not |
<div class="section" id="empty-end-tag"><h3>Empty end tag (<code></></code>) is not |
403 |
allowed.</h3></div> |
allowed.</h3></div> |
404 |
|
|
405 |
<div class="section" id="end-tag-attribute"><h3>End tag cannot have attributes.</h3></div> |
<div class="section" id="end-tag-attribute"><h3>終了タグに属性が指定されています。</h3></div> |
406 |
|
|
407 |
|
<div class="section" id="empty-unquoted-attribute-value"><h3>属性値が指定されていません。</h3> |
408 |
|
<p>The attribute value is not specified after the <code>=</code> |
409 |
|
(<code>U+003C</code> <code class="charname">EQUAL SIGN</code>) |
410 |
|
character.</p> |
411 |
|
|
412 |
|
<p>When an attribute value is empty, the <code>=</code> character after |
413 |
|
the attribute name must be specified as:</p> |
414 |
|
|
415 |
|
<p><code class="html example"><foo bar></code></p> |
416 |
|
|
417 |
|
<p>Instead, quotation marks can be used to explicitly represent that |
418 |
|
the attribute value is empty, as:</p> |
419 |
|
|
420 |
|
<p><code class="html example"><foo bar=""></code></p> |
421 |
|
|
422 |
|
<p>... or like:</p> |
423 |
|
|
424 |
|
<p><code class="html example"><foo bar=''></code></p> |
425 |
|
</div> |
426 |
|
|
427 |
<div class="section" id="invalid-character-reference"><h3>Character reference to |
<div class="section" id="invalid-character-reference"><h3>Character reference to |
428 |
<code><var>{text}</var></code> is not allowed.</h3></div> |
<code><var>{text}</var></code> is not allowed.</h3></div> |
1182 |
<div class="section" id="attribute-not-allowed:ismap"><h3>The <code>ismap</code> attribute may only be |
<div class="section" id="attribute-not-allowed:ismap"><h3>The <code>ismap</code> attribute may only be |
1183 |
used for the image contained in an <code>a</code> element.</h3></div> |
used for the image contained in an <code>a</code> element.</h3></div> |
1184 |
|
|
1185 |
<div class="section" id="attribute-not-defined"><h3>This attribute is not defined.</h3></div> |
<div class="section" id="attribute-not-defined"><h3>This attribute is not defined.</h3> |
1186 |
|
<p>The attribute is not one of attributes allowed for the element |
1187 |
|
in the latest version of relevant specifications.</p> |
1188 |
|
|
1189 |
<div class="section" id="in-HTML:xml:lang"><h3>The <code>xml:lang</code> attribute is not |
<p>The attribute cannot be used.</p> |
1190 |
allowed in HTML document.</h3> |
|
1191 |
<p>The <code>xml:lang</code> attribute is not allowed in |
<dl> |
1192 |
HTML document. The document is non-conforming.</p> |
<dt><code>autosubmit</code> attribute (<code>menu</code> element)</dt> |
1193 |
|
<dd>The attribute was part of HTML5 draft but then dropped. |
1194 |
|
Similar functionality can be implemented by scripts.</dd> |
1195 |
|
</dl> |
1196 |
|
</div> |
1197 |
|
|
1198 |
<p>Use of the <code>xml:lang</code> attribute is conforming |
<div class="section" id="in-HTML:xml:lang"><h3>The <code>xml:lang</code> attribute in HTML |
1199 |
<em>only</em> in XML documents.</p> |
document is ignored.</h3> |
1200 |
|
<p>The <code>xml:lang</code> attribute does not have an effect in |
1201 |
|
HTML document.</p> |
1202 |
|
|
1203 |
|
<p>The <code>xml:lang</code> attribute is only applicable to XML |
1204 |
|
documents. In HTML document, it is only allowed to ease migration |
1205 |
|
from XML.</p> |
1206 |
|
|
1207 |
<p>To specify natural language information in HTML document, |
<p>To specify natural language information in HTML document, |
1208 |
use <code>lang</code> attribute instead.</p> |
use <code>lang</code> attribute instead.</p> |
1230 |
</p> |
</p> |
1231 |
</div> |
</div> |
1232 |
|
|
|
<div class="section" id="in-XML:lang"><h3>The <code>lang</code> attribute is not |
|
|
allowed in XML document.</h3> |
|
|
<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> |
|
|
</div> |
|
|
|
|
1233 |
<div class="section" id="in-XML:noscript"><h3>A <code>noscript</code> element cannot be |
<div class="section" id="in-XML:noscript"><h3>A <code>noscript</code> element cannot be |
1234 |
used in XML document.</h3></div> |
used in XML document.</h3></div> |
1235 |
|
|
1236 |
|
<div class="section" id="in-XML:xml:lang"><h3>名前空間に属さな\xE3\x81\x84 <code>xml:lang</code> |
1237 |
|
属性が認められているのは HTML 文書中だけです。</h3></div> |
1238 |
|
|
1239 |
<div class="section" id="in-XML:xmlns"><h3>The <code>xmlns</code> attribute |
<div class="section" id="in-XML:xmlns"><h3>The <code>xmlns</code> attribute |
1240 |
in the <code>null</code> namespace is not allowed in |
in the <code>null</code> namespace is not allowed in |
1241 |
XHTML document. The document is non-conforming.</h3> |
XHTML document. The document is non-conforming.</h3> |
1246 |
static documents.</p> |
static documents.</p> |
1247 |
</div> |
</div> |
1248 |
|
|
1249 |
|
<div class="section" id="xml:lang-not-allowed"><h3><code>xml:lang</code> 属性を指定できるのは |
1250 |
|
<code>lang</code> 属性が指定されている時だけです。</h3></div> |
1251 |
|
|
1252 |
</section> |
</section> |
1253 |
|
|
1254 |
<section id="attribute-value-errors"> |
<section id="attribute-value-errors"> |
1381 |
|
|
1382 |
<div class="section" id="datetime:syntax-error"><h3>The attribute value is not a datetime.</h3></div> |
<div class="section" id="datetime:syntax-error"><h3>The attribute value is not a datetime.</h3></div> |
1383 |
|
|
1384 |
<div class="section" id="dateortime:syntax-error"><h3>The attribute value is not a date or |
<div class="section" id="dateortime:syntax-error"><h3>The value is not a date or time.</h3></div> |
|
time.</h3></div> |
|
1385 |
|
|
1386 |
<div class="section" id="enumerated:invalid"><h3>This attribute only allow a limited set of |
<div class="section" id="enumerated:invalid"><h3>This attribute only allow a limited set of |
1387 |
values and the specified value <code><var>{@}</var></code> is not one |
values and the specified value <code><var>{@}</var></code> is not one |
1591 |
<div class="section" id="XML-1.0-NCName:syntax-error"><h3>The specified value is not a legal XML Namespaces |
<div class="section" id="XML-1.0-NCName:syntax-error"><h3>The specified value is not a legal XML Namespaces |
1592 |
1.0 <code>NCName</code>.</h3></div> |
1.0 <code>NCName</code>.</h3></div> |
1593 |
|
|
1594 |
|
<div class="section" id="xml:lang-ne-lang"><h3><code>xml:lang</code> 属性の値が <code>lang</code> |
1595 |
|
属性の値と異なります。</h3> |
1596 |
|
<p><code>xml:lang</code> 属性 (<code>xml</code> (= |
1597 |
|
<code>http://www.w3.org/XML/1998/namespace</code>) 名前空間の |
1598 |
|
<code>lang</code> 属性や名前空間に属さない |
1599 |
|
<code>xml:lang</code> 属性) の値が同じ要素の名前空間に属さない |
1600 |
|
<code>lang</code> 属性の値と異なっています。</p> |
1601 |
|
|
1602 |
|
<p>歴史的な理由により、 HTML 要素の言語指定のための属性は |
1603 |
|
<code>lang</code> と <code>xml:lang</code> の2つがあります。 HTML |
1604 |
|
文書では名前空間に属さない <code>lang</code> 属性だけが認められており、 |
1605 |
|
かつ効力があります。名前空間に属さない |
1606 |
|
<code>xml:lang</code> 属性は HTML 文書では無視されます。 XHTML 文書では |
1607 |
|
<code>lang</code> 属\xE6\x80\xA7も <code>xml:lang</code> 属性も認められています。</p> |
1608 |
|
|
1609 |
|
<p>通常、要素の言語情報は <em><code>lang</code> |
1610 |
|
属性だけ</em>を使って指定すれば十分です。</p> |
1611 |
|
|
1612 |
|
<p><code>lang</code> 属性と <code>xml:lang</code> |
1613 |
|
属性の両方を同じ要素に指定する場合、 |
1614 |
|
両者の値は同じでなければなりません。</p> |
1615 |
|
</div> |
1616 |
|
|
1617 |
</section> |
</section> |
1618 |
|
|
1619 |
<section id="table-model-errors"> |
<section id="table-model-errors"> |
1761 |
URI.</h3></div> |
URI.</h3></div> |
1762 |
|
|
1763 |
<div class="section" id="URL:address-format"><h3>URL host address format |
<div class="section" id="URL:address-format"><h3>URL host address format |
1764 |
<code><var>{value}</var></code> is not supported by the |
<code><var>{text}</var></code> is not defined.</h3></div> |
|
conformance checker.</h3></div> |
|
1765 |
|
|
1766 |
<div class="section" id="URL:default-port"><h3>Default port number should be omitted.</h3></div> |
<div class="section" id="URL:default-port"><h3>Default port number should be omitted.</h3></div> |
1767 |
|
|