| 1 |
#en |
#en |
| 2 |
The <code title=attr-id><a href="#id">id</a></code> attribute represents |
The <code title=attr-id><a href=#the-id-attribute>id</a></code> attribute represents |
| 3 |
its element's unique identifier. The value must be unique in the subtree |
its element's unique identifier. The value must be unique in the subtree |
| 4 |
within which the element finds itself and must contain at least one |
within which the element finds itself and must contain at least one |
| 5 |
character. The value must not contain any <a href="#space" title="space |
character. The value must not contain any <a href=#space-character title="space |
| 6 |
character">space characters</a>. |
character">space characters</a>. |
| 7 |
#ja |
#ja |
| 8 |
<code title=attr-id><a href="#id">id</a></code> 属性は、 |
<code title=attr-id><a href=#the-id-attribute>id</a></code> 属性は、 |
| 9 |
その要素の固有識別子を表します。値はその要素が現れる部分木中で固有でなければ[[MUST:ならず]]、 |
その要素の固有識別子を表します。値はその要素が現れる部分木中で固有でなければ[[MUST:ならず]]、 |
| 10 |
最低1文字含まなければ[[MUST:なりません]]。 |
最低1文字含まなければ[[MUST:なりません]]。 |
| 11 |
値は<a href="#space" title="space |
値は<a href=#space-character title="space |
| 12 |
character">間隔文字</a>を含んでは[[MUST:なりません]]。 |
character">間隔文字</a>を含んでは[[MUST:なりません]]。 |
| 13 |
|
|
| 14 |
#en |
#en |
| 28 |
#en |
#en |
| 29 |
Identifiers are opaque strings. Particular meanings should not be |
Identifiers are opaque strings. Particular meanings should not be |
| 30 |
derived from the value of the <code title=attr-id><a |
derived from the value of the <code title=attr-id><a |
| 31 |
href="#id">id</a></code> attribute. |
href=#the-id-attribute>id</a></code> attribute. |
| 32 |
#ja |
#ja |
| 33 |
識別子は不透明な文字列です。特定の意味を <code title=attr-id><a |
識別子は不透明な文字列です。特定の意味を <code title=attr-id><a |
| 34 |
href="#id">id</a></code> 属性の値から見出す[[SHOULD:べきではありません]]。 |
href=#the-id-attribute>id</a></code> 属性の値から見出す[[SHOULD:べきではありません]]。 |
| 35 |
|
|
| 36 |
#en |
#en |
| 37 |
This specification doesn't preclude an element having multiple IDs, if |
This specification doesn't preclude an element having multiple IDs, if |
| 38 |
other mechanisms (e.g. DOM Core methods) can set an element's ID in a way |
other mechanisms (e.g. DOM Core methods) can set an element's ID in a way |
| 39 |
that doesn't conflict with the <code title=attr-id><a |
that doesn't conflict with the <code title=attr-id><a |
| 40 |
href="#id">id</a></code> attribute. |
href=#the-id-attribute>id</a></code> attribute. |
| 41 |
#ja |
#ja |
| 42 |
この仕様書は、他の仕組み (例えば DOM 中核のメソッド) によって |
この仕様書は、他の仕組み (例えば DOM 中核のメソッド) によって |
| 43 |
<code title=attr-id><a |
<code title=attr-id><a |
| 44 |
href="#id">id</a></code> 属性と矛盾しない形で要素の ID |
href=#the-id-attribute>id</a></code> 属性と矛盾しない形で要素の ID |
| 45 |
を設定することができる場合に、要素が複数の ID を持つことを禁じていません。 |
を設定することができる場合に、要素が複数の ID を持つことを禁じていません。 |
| 46 |
|
|
| 47 |
#pattern |
#pattern |
| 48 |
The * DOM attribute must <a |
The * DOM attribute must <a |
| 49 |
href="#reflect">reflect</a> the * content attribute. |
href=#reflect>reflect</a> the * content attribute. |
| 50 |
#ja |
#ja |
| 51 |
$1 DOM 属性は $2 内容属性を<a |
$1 DOM 属性は $2 内容属性を<a |
| 52 |
href="#reflect">反映</a>しなければ[[MUST:なりません]]。 |
href=#reflect>反映</a>しなければ[[MUST:なりません]]。 |
| 53 |
|
|
| 54 |
#pattern |
#pattern |
| 55 |
<span class=secno>* </span>The * element |
<span class=secno>* </span>The * element |
| 67 |
分類 |
分類 |
| 68 |
|
|
| 69 |
#en |
#en |
| 70 |
<a href="#metadata0">Metadata content</a>. |
<a href=#metadata-content-0>Metadata content</a>. |
| 71 |
#ja |
#ja |
| 72 |
<a href="#metadata0">メタデータ内容</a>。 |
<a href=#metadata-content-0>メタデータ内容</a>。 |
| 73 |
|
|
| 74 |
#en |
#en |
| 75 |
<a href="#flow-content0">Flow content</a>. |
<a href=#flow-content-0>Flow content</a>. |
| 76 |
#ja |
#ja |
| 77 |
<a href="#flow-content0">流れ内容</a>。 |
<a href=#flow-content-0>流れ内容</a>。 |
| 78 |
|
|
| 79 |
#en |
#en |
| 80 |
Contexts in which this element may be used: |
Contexts in which this element may be used: |
| 82 |
この要素を使っても[[MAY:よい]]文脈: |
この要素を使っても[[MAY:よい]]文脈: |
| 83 |
|
|
| 84 |
#en |
#en |
| 85 |
Where <a href="#flow-content0">flow content</a> is expected. |
Where <a href=#flow-content-0>flow content</a> is expected. |
| 86 |
#ja |
#ja |
| 87 |
<a href="#flow-content0">流れ内容</a>が期待される場所。 |
<a href=#flow-content-0>流れ内容</a>が期待される場所。 |
| 88 |
|
|
| 89 |
#en |
#en |
| 90 |
Content model: |
Content model: |
| 92 |
内容モデル: |
内容モデル: |
| 93 |
|
|
| 94 |
#en |
#en |
| 95 |
<a href="#phrasing0">Phrasing content</a>. |
<a href=#phrasing-content-0>Phrasing content</a>. |
| 96 |
#ja |
#ja |
| 97 |
<a href="#phrasing0">語句付け内容</a>。 |
<a href=#phrasing-content-0>語句付け内容</a>。 |
| 98 |
|
|
| 99 |
#en |
#en |
| 100 |
Element-specific attributes: |
Element-specific attributes: |
| 112 |
DOM 界面: |
DOM 界面: |
| 113 |
|
|
| 114 |
#en |
#en |
| 115 |
Uses <code><a href="#htmlelement">HTMLElement</a></code>. |
Uses <code><a href=#htmlelement>HTMLElement</a></code>. |
| 116 |
#ja |
#ja |
| 117 |
<code><a href="#htmlelement">HTMLElement</a></code> を使用。 |
<code><a href=#htmlelement>HTMLElement</a></code> を使用。 |
| 118 |
|
|
| 119 |
#en |
#en |
| 120 |
The <code title=attr-title><a href="#title">title</a></code> attribute |
The <code title=attr-title><a href=#the-title-attribute>title</a></code> attribute |
| 121 |
represents advisory information for the element, such as would be |
represents advisory information for the element, such as would be |
| 122 |
appropriate for a tooltip. On a link, this could be the title or a |
appropriate for a tooltip. On a link, this could be the title or a |
| 123 |
description of the target resource; on an image, it could be the image |
description of the target resource; on an image, it could be the image |
| 125 |
footnote or commentary on the text; on a citation, it could be further |
footnote or commentary on the text; on a citation, it could be further |
| 126 |
information about the source; and so forth. The value is text. |
information about the source; and so forth. The value is text. |
| 127 |
#ja |
#ja |
| 128 |
<code title=attr-title><a href="#title">title</a></code> 属性は、 |
<code title=attr-title><a href=#the-title-attribute>title</a></code> 属性は、 |
| 129 |
要素に関する助言情報、例えばツールチップとして適切なものなどを表します。 |
要素に関する助言情報、例えばツールチップとして適切なものなどを表します。 |
| 130 |
例えば、リンクにおいては、対象資源の題名や説明とすることができます。 |
例えば、リンクにおいては、対象資源の題名や説明とすることができます。 |
| 131 |
画像では、画像のクレジットや説明とすることができます。 |
画像では、画像のクレジットや説明とすることができます。 |
| 134 |
|
|
| 135 |
#en |
#en |
| 136 |
If this attribute is omitted from an element, then it implies that the |
If this attribute is omitted from an element, then it implies that the |
| 137 |
<code title=attr-title><a href="#title">title</a></code> attribute of the |
<code title=attr-title><a href=#the-title-attribute>title</a></code> attribute of the |
| 138 |
nearest ancestor <a href="#html-elements" title="HTML elements">HTML |
nearest ancestor <a href=#html-elements title="HTML elements">HTML |
| 139 |
element</a> with a <code title=attr-title><a |
element</a> with a <code title=attr-title><a |
| 140 |
href="#title">title</a></code> attribute set is also relevant to this |
href=#the-title-attribute>title</a></code> attribute set is also relevant to this |
| 141 |
element. Setting the attribute overrides this, explicitly stating that the |
element. Setting the attribute overrides this, explicitly stating that the |
| 142 |
advisory information of any ancestors is not relevant to this element. |
advisory information of any ancestors is not relevant to this element. |
| 143 |
Setting the attribute to the empty string indicates that the element has |
Setting the attribute to the empty string indicates that the element has |
| 144 |
no advisory information. |
no advisory information. |
| 145 |
#ja |
#ja |
| 146 |
ある要素でこの属性が省略されている場合、最も近い <code title=attr-title><a |
ある要素でこの属性が省略されている場合、最も近い <code title=attr-title><a |
| 147 |
href="#title">title</a></code> 属性が設定された祖先 |
href=#the-title-attribute>title</a></code> 属性が設定された祖先 |
| 148 |
<a href="#html-elements" title="HTML elements">HTML 要素</a>の |
<a href=#html-elements title="HTML elements">HTML 要素</a>の |
| 149 |
<code title=attr-title><a href="#title">title</a></code> 属性がその要素にも関係することを暗示しています。 |
<code title=attr-title><a href=#the-title-attribute>title</a></code> 属性がその要素にも関係することを暗示しています。 |
| 150 |
属性を設定することでこれが上書きされ、祖先の助言情報がこの要素に関係しないと明示することとなります。 |
属性を設定することでこれが上書きされ、祖先の助言情報がこの要素に関係しないと明示することとなります。 |
| 151 |
この属性を空文字列に設定すると、その要素が助言情報を持たないことが示されます。 |
この属性を空文字列に設定すると、その要素が助言情報を持たないことが示されます。 |
| 152 |
|
|
| 153 |
#en |
#en |
| 154 |
If the <code title=attr-title><a href="#title">title</a></code> |
If the <code title=attr-title><a href=#the-title-attribute>title</a></code> |
| 155 |
|
|
| 156 |
attribute's value contains U+000A LINE FEED (LF) characters, the content |
attribute's value contains U+000A LINE FEED (LF) characters, the content |
| 157 |
is split into multiple lines. Each U+000A LINE FEED (LF) character |
is split into multiple lines. Each U+000A LINE FEED (LF) character |
| 158 |
represents a line break. |
represents a line break. |
| 159 |
#ja |
#ja |
| 160 |
<code title=attr-title><a href="#title">title</a></code> |
<code title=attr-title><a href=#the-title-attribute>title</a></code> |
| 161 |
属性の値が U+000A LINE FEED (LF) 文字を含んでいる場合、 |
属性の値が U+000A LINE FEED (LF) 文字を含んでいる場合、 |
| 162 |
内容は複数行に分割されます。 U+000A LINE FEED (LF) |
内容は複数行に分割されます。 U+000A LINE FEED (LF) |
| 163 |
文字それぞれが改行を表します。 |
文字それぞれが改行を表します。 |
| 164 |
|
|
| 165 |
#en |
#en |
| 166 |
Some elements, such as <code><a href="#link">link</a></code> and |
Some elements, such as <code><a href=#the-link-element>link</a></code> and |
| 167 |
<code><a href="#abbr">abbr</a></code>, define additional semantics for the |
<code><a href=#the-abbr-element>abbr</a></code>, define additional semantics for the |
| 168 |
<code title=attr-title><a href="#title">title</a></code> attribute beyond |
<code title=attr-title><a href=#the-title-attribute>title</a></code> attribute beyond |
| 169 |
the semantics described above. |
the semantics described above. |
| 170 |
#ja |
#ja |
| 171 |
<code><a href="#link">link</a></code> 要素や |
<code><a href=#the-link-element>link</a></code> 要素や |
| 172 |
<code><a href="#abbr">abbr</a></code> 要素など、いくつかの要素は、 |
<code><a href=#the-abbr-element>abbr</a></code> 要素など、いくつかの要素は、 |
| 173 |
<code title=attr-title><a href="#title">title</a></code> 属性について、 |
<code title=attr-title><a href=#the-title-attribute>title</a></code> 属性について、 |
| 174 |
前述のような意味以上の追加の意味を定義しています。 |
前述のような意味以上の追加の意味を定義しています。 |
| 175 |
|
|
| 176 |
#en |
#en |
| 177 |
The <dfn id=title0 title=dom-title><code>title</code></dfn> DOM |
The <dfn id=dom-title title=dom-title><code>title</code></dfn> DOM |
| 178 |
attribute must <a href="#reflect">reflect</a> the <code |
attribute must <a href=#reflect>reflect</a> the <code |
| 179 |
title=attr-title><a href="#title">title</a></code> content attribute. |
title=attr-title><a href=#the-title-attribute>title</a></code> content attribute. |
| 180 |
#ja |
#ja |
| 181 |
<dfn id=title0 title=dom-title><code>title</code></dfn> DOM |
<dfn id=dom-title title=dom-title><code>title</code></dfn> DOM |
| 182 |
属性は <code |
属性は <code |
| 183 |
title=attr-title><a href="#title">title</a></code> 内容属性を<a href="#reflect">反映</a>しなければ[[MUST:なりません]]。 |
title=attr-title><a href=#the-title-attribute>title</a></code> 内容属性を<a href=#reflect>反映</a>しなければ[[MUST:なりません]]。 |
| 184 |
|
|
| 185 |
#pattern |
#pattern |
| 186 |
<span class=secno>* </span>The <dfn id=lang |
<span class=secno>* </span>The <dfn |
| 187 |
title=attr-lang><code>lang</code></dfn> (HTML only) and <dfn id=xmllang |
title=attr-lang><code>lang</code></dfn> (HTML only) and <dfn |
| 188 |
title=attr-xml-lang><code>xml:lang</code></dfn> (XML only) attributes |
title=attr-xml-lang><code>xml:lang</code></dfn> (XML only) attributes |
| 189 |
#ja |
#ja |
| 190 |
<span class=secno>$1 </span><dfn id=lang |
<span class=secno>$1 </span><dfn |
| 191 |
title=attr-lang><code>lang</code></dfn> 属性 (HTML のみ) と <dfn id=xmllang |
title=attr-lang><code>lang</code></dfn> 属性 (HTML のみ) と <dfn |
| 192 |
title=attr-xml-lang><code>xml:lang</code></dfn> 属性 (XML のみ) |
title=attr-xml-lang><code>xml:lang</code></dfn> 属性 (XML のみ) |
| 193 |
|
|
| 194 |
#en |
#en |
| 195 |
The <code title=attr-lang><a href="#lang">lang</a></code> attribute |
The <code title=attr-lang><a href=#the-lang-and-xml:lang-attributes>lang</a></code> attribute |
| 196 |
specifies the primary <dfn id=language>language</dfn> for the element's |
specifies the primary <dfn id=language>language</dfn> for the element's |
| 197 |
contents and for any of the element's attributes that contain text. Its |
contents and for any of the element's attributes that contain text. Its |
| 198 |
value must be a valid RFC 3066 language code, or the empty string. <a |
value must be a valid RFC 3066 language code, or the empty string. <a |
| 199 |
href="#refsRFC3066">[RFC3066]</a> |
href=#refsRFC3066>[RFC3066]</a> |
| 200 |
#ja |
#ja |
| 201 |
<code title=attr-lang><a href="#lang">lang</a></code> 属性は、 |
<code title=attr-lang><a href=#the-lang-and-xml:lang-attributes>lang</a></code> 属性は、 |
| 202 |
その要素の内容と文章を含むその要素の属性についての主たる<dfn id=language>言語</dfn>を指定します。 |
その要素の内容と文章を含むその要素の属性についての主たる<dfn id=language>言語</dfn>を指定します。 |
| 203 |
値は妥当な RFC 3066 言語符号または空文字列でなければ[[MUST:なりません]]。<a |
値は妥当な RFC 3066 言語符号または空文字列でなければ[[MUST:なりません]]。<a |
| 204 |
href="#refsRFC3066">[RFC3066]</a> |
href=#refsRFC3066>[RFC3066]</a> |
| 205 |
|
|
| 206 |
#en |
#en |
| 207 |
The <code title=attr-xml-lang><a href="#xmllang">xml:lang</a></code> |
The <code title=attr-xml-lang><a href=#the-lang-and-xml:lang-attributes>xml:lang</a></code> |
| 208 |
attribute is defined in XML. <a href="#refsXML">[XML]</a> |
attribute is defined in XML. <a href=#refsXML>[XML]</a> |
| 209 |
#ja |
#ja |
| 210 |
<code title=attr-xml-lang><a href="#xmllang">xml:lang</a></code> |
<code title=attr-xml-lang><a href=#the-lang-and-xml:lang-attributes>xml:lang</a></code> |
| 211 |
属性は XML で定義されています。 <a href="#refsXML">[XML]</a> |
属性は XML で定義されています。 <a href=#refsXML>[XML]</a> |
| 212 |
|
|
| 213 |
#en |
#en |
| 214 |
If these attributes are omitted from an element, then it implies that |
If these attributes are omitted from an element, then it implies that |
| 221 |
主たる言語が不明であることを示します。 |
主たる言語が不明であることを示します。 |
| 222 |
|
|
| 223 |
#en |
#en |
| 224 |
The <code title=attr-lang><a href="#lang">lang</a></code> attribute may |
The <code title=attr-lang><a href=#the-lang-and-xml:lang-attributes>lang</a></code> attribute may |
| 225 |
be used on elements of <a href="#html-">HTML documents</a>. Authors must |
be used on elements of <a href=#html-documents>HTML documents</a>. Authors must |
| 226 |
not use the <code title=attr-lang><a href="#lang">lang</a></code> |
not use the <code title=attr-lang><a href=#the-lang-and-xml:lang-attributes>lang</a></code> |
| 227 |
attribute in <a href="#xml-documents">XML documents</a>. |
attribute in <a href=#xml-documents>XML documents</a>. |
| 228 |
#ja |
#ja |
| 229 |
<code title=attr-lang><a href="#lang">lang</a></code> |
<code title=attr-lang><a href=#the-lang-and-xml:lang-attributes>lang</a></code> |
| 230 |
属性は <a href="#html-">HTML 文書</a>の要素で使用して[[MAY:構いません]]。 |
属性は <a href=#html-documents>HTML 文書</a>の要素で使用して[[MAY:構いません]]。 |
| 231 |
著者は <code title=attr-lang><a href="#lang">lang</a></code> |
著者は <code title=attr-lang><a href=#the-lang-and-xml:lang-attributes>lang</a></code> |
| 232 |
属性を <a href="#xml-documents">XML 文書</a>で使用しては[[MUST NOT:なりません]]。 |
属性を <a href=#xml-documents>XML 文書</a>で使用しては[[MUST NOT:なりません]]。 |
| 233 |
|
|
| 234 |
#en |
#en |
| 235 |
The <code title=attr-xml-lang><a href="#xmllang">xml:lang</a></code> |
The <code title=attr-xml-lang><a href=#the-lang-and-xml:lang-attributes>xml:lang</a></code> |
| 236 |
attribute may be used on elements of <a href="#xml-documents">XML |
attribute may be used on elements of <a href=#xml-documents>XML |
| 237 |
documents</a>. Authors must not use the <code title=attr-xml-lang><a |
documents</a>. Authors must not use the <code title=attr-xml-lang><a |
| 238 |
href="#xmllang">xml:lang</a></code> attribute in <a href="#html-">HTML |
href=#the-lang-and-xml:lang-attributes>xml:lang</a></code> attribute in <a href=#html-documents>HTML |
| 239 |
documents</a>. |
documents</a>. |
| 240 |
#ja |
#ja |
| 241 |
<code title=attr-xml-lang><a href="#xmllang">xml:lang</a></code> |
<code title=attr-xml-lang><a href=#the-lang-and-xml:lang-attributes>xml:lang</a></code> |
| 242 |
属性は <a href="#xml-documents">XML |
属性は <a href=#xml-documents>XML |
| 243 |
文書</a>の要素で使用して[[MAY:構いません]]。著者は <code title=attr-xml-lang><a |
文書</a>の要素で使用して[[MAY:構いません]]。著者は <code title=attr-xml-lang><a |
| 244 |
href="#xmllang">xml:lang</a></code> |
href=#the-lang-and-xml:lang-attributes>xml:lang</a></code> |
| 245 |
属性を <a href="#html-">HTML 文書</a>で使用しては[[MUST NOT:なりません]]。 |
属性を <a href=#html-documents>HTML 文書</a>で使用しては[[MUST NOT:なりません]]。 |
| 246 |
|
|
| 247 |
#en |
#en |
| 248 |
To determine the language of a node, user agents must look at the |
To determine the language of a node, user agents must look at the |
| 249 |
nearest ancestor element (including the element itself if the node is an |
nearest ancestor element (including the element itself if the node is an |
| 250 |
element) that has an <code title=attr-xml-lang><a |
element) that has an <code title=attr-xml-lang><a |
| 251 |
href="#xmllang">xml:lang</a></code> attribute set or is an <a |
href=#the-lang-and-xml:lang-attributes>xml:lang</a></code> attribute set or is an <a |
| 252 |
href="#html-elements" title="HTML elements">HTML element</a> and has a |
href=#html-elements title="HTML elements">HTML element</a> and has a |
| 253 |
<code title=attr-lang><a href="#lang">lang</a></code> attribute set. That |
<code title=attr-lang><a href=#the-lang-and-xml:lang-attributes>lang</a></code> attribute set. That |
| 254 |
attribute specifies the language of the node. |
attribute specifies the language of the node. |
| 255 |
#ja |
#ja |
| 256 |
利用者エージェントは、ある節点の言語を決定する場合、 |
利用者エージェントは、ある節点の言語を決定する場合、 |
| 257 |
<code title=attr-xml-lang><a |
<code title=attr-xml-lang><a |
| 258 |
href="#xmllang">xml:lang</a></code> 属性が設定されているか、 <a |
href=#the-lang-and-xml:lang-attributes>xml:lang</a></code> 属性が設定されているか、 <a |
| 259 |
href="#html-elements" title="HTML elements">HTML 要素</a>であって |
href=#html-elements title="HTML elements">HTML 要素</a>であって |
| 260 |
<code title=attr-lang><a href="#lang">lang</a></code> 属性が設定されている直近の祖先要素 |
<code title=attr-lang><a href=#the-lang-and-xml:lang-attributes>lang</a></code> 属性が設定されている直近の祖先要素 |
| 261 |
(当該節点が要素である場合、その要素自体を含みます。) |
(当該節点が要素である場合、その要素自体を含みます。) |
| 262 |
を見なければ[[MUST:なりません]]。その属性が、当該節点の言語を指定します。 |
を見なければ[[MUST:なりません]]。その属性が、当該節点の言語を指定します。 |
| 263 |
|
|
| 264 |
#en |
#en |
| 265 |
If both the <code title=attr-xml-lang><a |
If both the <code title=attr-xml-lang><a |
| 266 |
href="#xmllang">xml:lang</a></code> attribute and the <code |
href=#the-lang-and-xml:lang-attributes>xml:lang</a></code> attribute and the <code |
| 267 |
title=attr-lang><a href="#lang">lang</a></code> attribute are set on an |
title=attr-lang><a href=#the-lang-and-xml:lang-attributes>lang</a></code> attribute are set on an |
| 268 |
element, user agents must use the <code title=attr-xml-lang><a |
element, user agents must use the <code title=attr-xml-lang><a |
| 269 |
href="#xmllang">xml:lang</a></code> attribute, and the <code |
href=#the-lang-and-xml:lang-attributes>xml:lang</a></code> attribute, and the <code |
| 270 |
title=attr-lang><a href="#lang">lang</a></code> attribute must be <a |
title=attr-lang><a href=#the-lang-and-xml:lang-attributes>lang</a></code> attribute must be <a |
| 271 |
href="#ignored" title=ignore>ignored</a> for the purposes of determining |
href=#ignore title=ignore>ignored</a> for the purposes of determining |
| 272 |
the element's language. |
the element's language. |
| 273 |
#ja |
#ja |
| 274 |
利用者エージェントは、 <code title=attr-xml-lang><a |
利用者エージェントは、 <code title=attr-xml-lang><a |
| 275 |
href="#xmllang">xml:lang</a></code> 属性と <code |
href=#the-lang-and-xml:lang-attributes>xml:lang</a></code> 属性と <code |
| 276 |
title=attr-lang><a href="#lang">lang</a></code> |
title=attr-lang><a href=#the-lang-and-xml:lang-attributes>lang</a></code> |
| 277 |
属性が共にある要素に設定されている場合、 <code title=attr-xml-lang><a |
属性が共にある要素に設定されている場合、 <code title=attr-xml-lang><a |
| 278 |
href="#xmllang">xml:lang</a></code> 属性を使用しなければ[[MUST:ならず]]、 |
href=#the-lang-and-xml:lang-attributes>xml:lang</a></code> 属性を使用しなければ[[MUST:ならず]]、 |
| 279 |
<code |
<code |
| 280 |
title=attr-lang><a href="#lang">lang</a></code> 属性は要素の言語の決定においては<a |
title=attr-lang><a href=#the-lang-and-xml:lang-attributes>lang</a></code> 属性は要素の言語の決定においては<a |
| 281 |
href="#ignored" title=ignore>無視</a>しなければ[[MUST:なりません]]。 |
href=#ignore title=ignore>無視</a>しなければ[[MUST:なりません]]。 |
| 282 |
|
|
| 283 |
#en |
#en |
| 284 |
If no explicit language is given for the <a href="#root-element">root |
If no explicit language is given for the <a href=#root-element>root |
| 285 |
element</a>, then language information from a higher-level protocol (such |
element</a>, then language information from a higher-level protocol (such |
| 286 |
as HTTP), if any, must be used as the final fallback language. In the |
as HTTP), if any, must be used as the final fallback language. In the |
| 287 |
absence of any language information, the default value is unknown (the |
absence of any language information, the default value is unknown (the |
| 288 |
empty string). |
empty string). |
| 289 |
#ja |
#ja |
| 290 |
<a href="#root-element">根要素</a>に対して言語が明示的に与えられていない場合、 |
<a href=#root-element>根要素</a>に対して言語が明示的に与えられていない場合、 |
| 291 |
上位プロトコル (HTTP など) の言語情報があれば、これを最終フォールバック言語として使わなければ[[MUST:なりません]]。 |
上位プロトコル (HTTP など) の言語情報があれば、これを最終フォールバック言語として使わなければ[[MUST:なりません]]。 |
| 292 |
どの言語情報も存在しない場合、既定値は不明 (空文字列) です。 |
どの言語情報も存在しない場合、既定値は不明 (空文字列) です。 |
| 293 |
|
|
| 304 |
のために使って[[MAY:構いません]]。 |
のために使って[[MAY:構いません]]。 |
| 305 |
|
|
| 306 |
#pattern |
#pattern |
| 307 |
<span class=secno>* </span>The <dfn id=xmlbase |
<span class=secno>* </span>The <dfn |
| 308 |
title=attr-xml-base><code>xml:base</code></dfn> attribute (XML only) |
title=attr-xml-base><code>xml:base</code></dfn> attribute (XML only) |
| 309 |
#ja |
#ja |
| 310 |
<span class=secno>$1 </span><dfn id=xmlbase |
<span class=secno>$1 </span><dfn |
| 311 |
title=attr-xml-base><code>xml:base</code></dfn> 属性 (XML のみ) |
title=attr-xml-base><code>xml:base</code></dfn> 属性 (XML のみ) |
| 312 |
|
|
| 313 |
#en |
#en |
| 314 |
The <code title=attr-xml-base><a href="#xmlbase">xml:base</a></code> |
The <code title=attr-xml-base><a href=#the-xml:base-attribute-(xml-only)>xml:base</a></code> |
| 315 |
attribute is defined in XML Base. <a href="#refsXMLBASE">[XMLBASE]</a> |
attribute is defined in XML Base. <a href=#refsXMLBASE>[XMLBASE]</a> |
| 316 |
#ja |
#ja |
| 317 |
<code title=attr-xml-base><a href="#xmlbase">xml:base</a></code> |
<code title=attr-xml-base><a href=#the-xml:base-attribute-(xml-only)>xml:base</a></code> |
| 318 |
属性は XML 基底で定義されています。 <a href="#refsXMLBASE">[XMLBASE]</a> |
属性は XML 基底で定義されています。 <a href=#refsXMLBASE>[XMLBASE]</a> |
| 319 |
|
|
| 320 |
#en |
#en |
| 321 |
The <code title=attr-xml-base><a href="#xmlbase">xml:base</a></code> |
The <code title=attr-xml-base><a href=#the-xml:base-attribute-(xml-only)>xml:base</a></code> |
| 322 |
attribute may be used on elements of <a href="#xml-documents">XML |
attribute may be used on elements of <a href=#xml-documents>XML |
| 323 |
documents</a>. Authors must not use the <code title=attr-xml-base><a |
documents</a>. Authors must not use the <code title=attr-xml-base><a |
| 324 |
href="#xmlbase">xml:base</a></code> attribute in <a href="#html-">HTML |
href=#the-xml:base-attribute-(xml-only)>xml:base</a></code> attribute in <a href=#html-documents>HTML |
| 325 |
documents</a>. |
documents</a>. |
| 326 |
#ja |
#ja |
| 327 |
<code title=attr-xml-base><a href="#xmlbase">xml:base</a></code> |
<code title=attr-xml-base><a href=#the-xml:base-attribute-(xml-only)>xml:base</a></code> |
| 328 |
属性は <a href="#xml-documents">XML 文書</a>の要素で使って[[MAY:構いません]]。 |
属性は <a href=#xml-documents>XML 文書</a>の要素で使って[[MAY:構いません]]。 |
| 329 |
著者は <code title=attr-xml-base><a |
著者は <code title=attr-xml-base><a |
| 330 |
href="#xmlbase">xml:base</a></code> 属性を <a href="#html-">HTML |
href=#the-xml:base-attribute-(xml-only)>xml:base</a></code> 属性を <a href=#html-documents>HTML |
| 331 |
文書</a>で使用しては[[MUST NOT:なりません]]。 |
文書</a>で使用しては[[MUST NOT:なりません]]。 |
| 332 |
|
|
| 333 |
|
|
| 334 |
#pattern |
#pattern |
| 335 |
<span class=secno>* </span><dfn |
<span class=secno>* </span><dfn |
| 336 |
id=embedding0>Embedding custom non-visible data</dfn> |
>Embedding custom non-visible data</dfn> |
| 337 |
#ja |
#ja |
| 338 |
<span class=secno>$1 </span><dfn |
<span class=secno>$1 </span><dfn |
| 339 |
id=embedding0>カスタム不可視データの埋め込み</dfn> |
>カスタム不可視データの埋め込み</dfn> |
| 340 |
|
|
| 341 |
#en |
#en |
| 342 |
A <dfn id=custom>custom data attribute</dfn> is an attribute whose name |
A <dfn id=custom-data-attribute>custom data attribute</dfn> is an attribute whose name |
| 343 |
starts with the string "<dfn id=data- |
starts with the string "<dfn id=attr-data-* |
| 344 |
title="attr-data-*"><code>data-</code></dfn>", has at least one character |
title="attr-data-*"><code>data-</code></dfn>", has at least one character |
| 345 |
after the hyphen, is <a href="#xml-compatible">XML-compatible</a>, and has |
after the hyphen, is <a href=#xml-compatible>XML-compatible</a>, and has |
| 346 |
no namespace. |
no namespace. |
| 347 |
#ja |
#ja |
| 348 |
<dfn id=custom>カスタム・データ属性</dfn>は、 |
<dfn id=custom-data-attribute>カスタム・データ属性</dfn>は、 |
| 349 |
名前が文字列 "<dfn id=data- |
名前が文字列 "<dfn id=attr-data-* |
| 350 |
title="attr-data-*"><code>data-</code></dfn>" で始まり、 |
title="attr-data-*"><code>data-</code></dfn>" で始まり、 |
| 351 |
ハイフンの後最低1文字あり、 <a href="#xml-compatible">XML 互換</a>で、 |
ハイフンの後最低1文字あり、 <a href=#xml-compatible>XML 互換</a>で、 |
| 352 |
名前空間を持たない属性です。 |
名前空間を持たない属性です。 |
| 353 |
|
|
| 354 |
#en |
#en |
| 355 |
<a href="#custom" title="custom data attribute">Custom data |
<a href=#custom-data-attribute title="custom data attribute">Custom data |
| 356 |
attributes</a> are intended to store custom data private to the page or |
attributes</a> are intended to store custom data private to the page or |
| 357 |
application, for which there are no more appropriate attributes or |
application, for which there are no more appropriate attributes or |
| 358 |
elements. |
elements. |
| 359 |
#ja |
#ja |
| 360 |
<a href="#custom" title="custom data attribute">カスタム・データ属性</a>は、 |
<a href=#custom-data-attribute title="custom data attribute">カスタム・データ属性</a>は、 |
| 361 |
より適切な要素や属性がないような頁や応用の私的なカスタム・データを蓄積することを想定しています。 |
より適切な要素や属性がないような頁や応用の私的なカスタム・データを蓄積することを想定しています。 |
| 362 |
|
|
| 363 |
#en |
#en |
| 364 |
Every <a href="#html-elements" title="HTML elements">HTML element</a> |
Every <a href=#html-elements title="HTML elements">HTML element</a> |
| 365 |
may have any number of <a href="#custom" title="custom data |
may have any number of <a href=#custom-data-attribute title="custom data |
| 366 |
attribute">custom data attributes</a> specified, with any value. |
attribute">custom data attributes</a> specified, with any value. |
| 367 |
#ja |
#ja |
| 368 |
すべての <a href="#html-elements" title="HTML elements">HTML 要素</a>には、 |
すべての <a href=#html-elements title="HTML elements">HTML 要素</a>には、 |
| 369 |
任意の値の<a href="#custom" title="custom data |
任意の値の<a href=#custom-data-attribute title="custom data |
| 370 |
attribute">カスタム・データ属性</a>を任意の個数指定して[[MAY:構いません]]。 |
attribute">カスタム・データ属性</a>を任意の個数指定して[[MAY:構いません]]。 |
| 371 |
|
|
| 372 |
#en |
#en |
| 373 |
The <dfn id=dataset title=dom-dataset><code>dataset</code></dfn> DOM |
The <dfn id=dom-dataset title=dom-dataset><code>dataset</code></dfn> DOM |
| 374 |
attribute provides convenient accessors for all the <code |
attribute provides convenient accessors for all the <code |
| 375 |
title="attr-data-*"><a href="#data-">data-*</a></code> attributes on an |
title="attr-data-*"><a href=#attr-data-*>data-*</a></code> attributes on an |
| 376 |
element. On getting, the <code title=dom-dataset><a |
element. On getting, the <code title=dom-dataset><a |
| 377 |
href="#dataset">dataset</a></code> DOM attribute must return a <code><a |
href=#dom-dataset>dataset</a></code> DOM attribute must return a <code><a |
| 378 |
href="#domstringmap0">DOMStringMap</a></code> object, associated with the |
href=#domstringmap-0>DOMStringMap</a></code> object, associated with the |
| 379 |
following three algorithms, which expose these attributes on their |
following three algorithms, which expose these attributes on their |
| 380 |
element: |
element: |
| 381 |
#ja |
#ja |
| 382 |
<dfn id=dataset title=dom-dataset><code>dataset</code></dfn> DOM |
<dfn id=dom-dataset title=dom-dataset><code>dataset</code></dfn> DOM |
| 383 |
属性は、要素のすべての <code |
属性は、要素のすべての <code |
| 384 |
title="attr-data-*"><a href="#data-">data-*</a></code> 属性の便宜アクセス子を提供します。 |
title="attr-data-*"><a href=#attr-data-*>data-*</a></code> 属性の便宜アクセス子を提供します。 |
| 385 |
<code title=dom-dataset><a |
<code title=dom-dataset><a |
| 386 |
href="#dataset">dataset</a></code> DOM 属性は、取得時、 |
href=#dom-dataset>dataset</a></code> DOM 属性は、取得時、 |
| 387 |
次の3つの算法 (要素のすべての <code |
次の3つの算法 (要素のすべての <code |
| 388 |
title="attr-data-*"><a href="#data-">data-*</a></code> 属性を露出させます。) |
title="attr-data-*"><a href=#attr-data-*>data-*</a></code> 属性を露出させます。) |
| 389 |
と関連付けられた <code><a |
と関連付けられた <code><a |
| 390 |
href="#domstringmap0">DOMStringMap</a></code> |
href=#domstringmap-0>DOMStringMap</a></code> |
| 391 |
オブジェクトを返さなければ[[MUST:なりません]]。 |
オブジェクトを返さなければ[[MUST:なりません]]。 |
| 392 |
|
|
| 393 |
#en |
#en |
| 458 |
If a Web page wanted an element to represent a space ship, e.g. as part |
If a Web page wanted an element to represent a space ship, e.g. as part |
| 459 |
of a game, it would have to use the <code class=attr-class>class</code> |
of a game, it would have to use the <code class=attr-class>class</code> |
| 460 |
attribute along with <code title="attr-data-*"><a |
attribute along with <code title="attr-data-*"><a |
| 461 |
href="#data-">data-*</a></code> attributes: |
href=#attr-data-*>data-*</a></code> attributes: |
| 462 |
#ja |
#ja |
| 463 |
Web 頁に宇宙船を表す要素が必要な場合 (例えばゲーム中で)、 |
Web 頁に宇宙船を表す要素が必要な場合 (例えばゲーム中で)、 |
| 464 |
<code class=attr-class>class</code> |
<code class=attr-class>class</code> |
| 465 |
属性と共に <code title="attr-data-*"><a |
属性と共に <code title="attr-data-*"><a |
| 466 |
href="#data-">data-*</a></code> |
href=#attr-data-*>data-*</a></code> |
| 467 |
属性を使う必要が生じることでしょう。 |
属性を使う必要が生じることでしょう。 |
| 468 |
|
|
| 469 |
#en |
#en |
| 504 |
複合文書中で部分文書素片が認められる時に。 |
複合文書中で部分文書素片が認められる時に。 |
| 505 |
|
|
| 506 |
#en |
#en |
| 507 |
A <code><a href="#head">head</a></code> element followed by a <code><a |
A <code><a href=#the-head-element>head</a></code> element followed by a <code><a |
| 508 |
href="#body0">body</a></code> element. |
href=#the-body-element>body</a></code> element. |
| 509 |
#ja |
#ja |
| 510 |
<code><a href="#head">head</a></code> 要素と、その後に <code><a |
<code><a href=#the-head-element>head</a></code> 要素と、その後に <code><a |
| 511 |
href="#body0">body</a></code> 要素。 |
href=#the-body-element>body</a></code> 要素。 |
| 512 |
|
|
| 513 |
#en |
#en |
| 514 |
The <code><a href="#html">html</a></code> element represents the root of |
The <code><a href=#the-html-element>html</a></code> element represents the root of |
| 515 |
an HTML document. |
an HTML document. |
| 516 |
#ja |
#ja |
| 517 |
<code><a href="#html">html</a></code> 要素は HTML 文書の根を表します。 |
<code><a href=#the-html-element>html</a></code> 要素は HTML 文書の根を表します。 |
| 518 |
|
|
| 519 |
#en |
#en |
| 520 |
The <dfn id=manifest |
The <dfn id=attr-html-manifest |
| 521 |
title=attr-html-manifest><code>manifest</code></dfn> attribute gives the |
title=attr-html-manifest><code>manifest</code></dfn> attribute gives the |
| 522 |
address of the document's <a href="#application0">application cache</a> <a |
address of the document's <a href=#application-cache>application cache</a> <a |
| 523 |
href="#the-manifest" title=concept-appcache-manifest>manifest</a>, if |
href=#concept-appcache-manifest title=concept-appcache-manifest>manifest</a>, if |
| 524 |
there is one. If the attribute is present, the attribute's value must be a |
there is one. If the attribute is present, the attribute's value must be a |
| 525 |
<a href="#valid8">valid URL</a>. |
<a href=#valid-date-string>valid URL</a>. |
| 526 |
#ja |
#ja |
| 527 |
<dfn id=manifest |
<dfn id=attr-html-manifest |
| 528 |
title=attr-html-manifest><code>manifest</code></dfn> 属性は、 |
title=attr-html-manifest><code>manifest</code></dfn> 属性は、 |
| 529 |
文書の<a href="#application0">アプリケーション・キャッシュ</a>・<a |
文書の<a href=#application-cache>アプリケーション・キャッシュ</a>・<a |
| 530 |
href="#the-manifest" title=concept-appcache-manifest>マニフェスト</a>がある場合、その番地を与えます。 |
href=#concept-appcache-manifest title=concept-appcache-manifest>マニフェスト</a>がある場合、その番地を与えます。 |
| 531 |
この属性がある場合、その属性値は<a href="#valid8">妥当な URL</a> |
この属性がある場合、その属性値は<a href=#valid-date-string>妥当な URL</a> |
| 532 |
でなければ[[MUST:なりません]]。 |
でなければ[[MUST:なりません]]。 |
| 533 |
|
|
| 534 |
#en |
#en |
| 535 |
The <code title=attr-html-manifest><a |
The <code title=attr-html-manifest><a |
| 536 |
href="#manifest">manifest</a></code> attribute only <a |
href=#attr-html-manifest>manifest</a></code> attribute only <a |
| 537 |
href="#application2" title=concept-appcache-init-with-attribute>has an |
href=#concept-appcache-init-with-attribute title=concept-appcache-init-with-attribute>has an |
| 538 |
effect</a> during the early stages of document load. Changing the |
effect</a> during the early stages of document load. Changing the |
| 539 |
attribute dynamically thus has no effect (and thus, no DOM API is provided |
attribute dynamically thus has no effect (and thus, no DOM API is provided |
| 540 |
for this attribute). |
for this attribute). |
| 541 |
#ja |
#ja |
| 542 |
<code title=attr-html-manifest><a |
<code title=attr-html-manifest><a |
| 543 |
href="#manifest">manifest</a></code> |
href=#attr-html-manifest>manifest</a></code> |
| 544 |
属性は文書の読み込みの早い段階でのみ<a |
属性は文書の読み込みの早い段階でのみ<a |
| 545 |
href="#application2" title=concept-appcache-init-with-attribute>影響を持ちます</a>。 |
href=#concept-appcache-init-with-attribute title=concept-appcache-init-with-attribute>影響を持ちます</a>。 |
| 546 |
この属性を動的に変更しても、影響はありません (ので、 DOM API |
この属性を動的に変更しても、影響はありません (ので、 DOM API |
| 547 |
はこの属性には提供しません)。 |
はこの属性には提供しません)。 |
| 548 |
|
|
| 549 |
#en |
#en |
| 550 |
Later <code><a href="#base">base</a></code> elements don't |
Later <code><a href=#the-base-element>base</a></code> elements don't |
| 551 |
affect the <a href="#resolve" title="resolve a url">resolving of relative |
affect the <a href=#resolve-a-url title="resolve a url">resolving of relative |
| 552 |
URLs</a> in <code title=attr-html-manifest><a |
URLs</a> in <code title=attr-html-manifest><a |
| 553 |
href="#manifest">manifest</a></code> attributes, as the attributes are |
href=#attr-html-manifest>manifest</a></code> attributes, as the attributes are |
| 554 |
processed before those elements are seen. |
processed before those elements are seen. |
| 555 |
#ja |
#ja |
| 556 |
後の <code><a href="#base">base</a></code> 要素は、それが見られるよりも前に <code title=attr-html-manifest><a |
後の <code><a href=#the-base-element>base</a></code> 要素は、それが見られるよりも前に <code title=attr-html-manifest><a |
| 557 |
href="#manifest">manifest</a></code> |
href=#attr-html-manifest>manifest</a></code> |
| 558 |
属性が処理されるので、<a href="#resolve" title="resolve a url">相対 URL |
属性が処理されるので、<a href=#resolve-a-url title="resolve a url">相対 URL |
| 559 |
の解決</a>には影響しません。 |
の解決</a>には影響しません。 |
| 560 |
|
|
| 561 |
#pattern |
#pattern |
| 564 |
<span class=secno>$1 </span>文書メタデータ |
<span class=secno>$1 </span>文書メタデータ |
| 565 |
|
|
| 566 |
#en |
#en |
| 567 |
As the first element in an <code><a href="#html">html</a></code> |
As the first element in an <code><a href=#the-html-element>html</a></code> |
| 568 |
element. |
element. |
| 569 |
#ja |
#ja |
| 570 |
<code><a href="#html">html</a></code> 要素の最初の要素として。 |
<code><a href=#the-html-element>html</a></code> 要素の最初の要素として。 |
| 571 |
|
|
| 572 |
#en |
#en |
| 573 |
One or more elements of <a href="#metadata0">metadata content</a>, of |
One or more elements of <a href=#metadata-content-0>metadata content</a>, of |
| 574 |
which exactly one is a <code><a href="#title1">title</a></code> element. |
which exactly one is a <code><a href=#the-title-element>title</a></code> element. |
| 575 |
#ja |
#ja |
|
1つ以上の<a href="#metadata0">メタデータ内容</a>要素、 |
|
|
ただし、そのうちの丁度1つは <code><a href="#title1">title</a></code> 要素。 |
|
| 576 |
|
1つ以上の<a href=#metadata-content-0>メタデータ内容</a>要素、 |
| 577 |
|
ただし、そのうちの丁度1つは <code><a href=#the-title-element>title</a></code> 要素。 |
| 578 |
|
|
| 579 |
|
#en |
| 580 |
|
The <code><a href=#the-head-element>head</a></code> element collects the |
| 581 |
|
document's metadata. |
| 582 |
|
#ja |
| 583 |
|
<code><a href=#the-head-element>head</a></code> 要素は文書のメタデータを集めています。 |
| 584 |
|
|
| 585 |
|
#en |
| 586 |
|
In a <code><a href=#the-head-element>head</a></code> element containing no other |
| 587 |
|
<code><a href=#the-title-element>title</a></code> elements. |
| 588 |
|
#ja |
| 589 |
|
他に <code><a href=#the-title-element>title</a></code> |
| 590 |
|
要素を含まない <code><a href=#the-head-element>head</a></code> 要素の中。 |
| 591 |
|
|
| 592 |
|
|
| 593 |
|
#en |
| 594 |
|
Text. |
| 595 |
|
#ja |
| 596 |
|
テキスト。 |