111 |
|
|
112 |
<div class="note memo"> |
<div class="note memo"> |
113 |
<p>These definitions are updated version of their original definitions |
<p>These definitions are updated version of their original definitions |
114 |
in previous versions of HTML4. |
in previous versions of HTML (i.e. HTML 2.x, HTML4, Web Forms 2.0, |
115 |
|
or early drafts of HTML5). |
116 |
</div> |
</div> |
117 |
|
|
118 |
<p>For each row in the table below, if an attribute (i.e. an |
<p>For each row in the table below, if an attribute (i.e. an |
142 |
<th scope=row>Value |
<th scope=row>Value |
143 |
<tbody> |
<tbody> |
144 |
<tr><td><code>body</code><td><code>background</code> |
<tr><td><code>body</code><td><code>background</code> |
145 |
<td>Same as <code>img</code> <code>src</code> [HTML5] |
<td>Syntactically same as <code>img</code> <code>src</code> [HTML5] |
146 |
<tr><td><code>img</code><td><code>longdesc</code> |
<tr><td><code>img</code><td><code>longdesc</code> |
147 |
<td>Same as <code>img</code> <code>src</code> [HTML5] |
<td>Syntactically same as <code>img</code> <code>src</code> [HTML5] |
148 |
|
|
149 |
|
<tr><td><code>input</code><td><code>accept-charset</code> |
150 |
|
<td>Same as <code>accept-charset</code> attribute of the |
151 |
|
<code>form</code> element [HTML5] |
152 |
|
|
153 |
|
<tr><td><code>input</code> (<code>type</code> attribute is in Image Button |
154 |
|
state) |
155 |
|
<td><code>usemap</code> |
156 |
|
<td>Syntactically same as <code>img</code> <code>usemap</code> [HTML5] |
157 |
|
<!-- This definition is necessary, since HTML5 definition for usemap="" |
158 |
|
has changed after <input usemap> is dropped. --> |
159 |
|
|
160 |
<tr><td><code>object</code><td><code>classid</code> or <code>codebase</code> |
<tr><td><code>object</code><td><code>classid</code> or <code>codebase</code> |
161 |
<td>Same as <code>img</code> <code>src</code> [HTML5] |
<td>Syntactically same as <code>img</code> <code>src</code> [HTML5] |
162 |
<tr><td><code>object</code><td><code>archive |
|
163 |
|
<tr><td><code>head</code><td><code>profile</code> |
164 |
|
<td>Same as <code>a</code> <code>ping</code> [HTML5] |
165 |
|
<!-- This definition is necessary, since HTML5 defnition for attributes |
166 |
|
with URLs has changed after profile="" is dropped. --> |
167 |
|
|
168 |
|
<tr><td><code>object</code><td><code>archive</code> |
169 |
<td>Same as <code>a</code> <code>ping</code> [HTML5] |
<td>Same as <code>a</code> <code>ping</code> [HTML5] |
170 |
|
|
171 |
<tr><td><code>object</code><td><code>codetype</code> |
<tr><td><code>object</code><td><code>codetype</code> |
172 |
<td>Same as <code>object</code> <code>type</code> [HTML5] |
<td>Same as <code>object</code> <code>type</code> [HTML5] |
173 |
<tr><td><code>param</code><td><code>type</code> |
<tr><td><code>param</code><td><code>type</code> |
177 |
<code>h6</code>, or <code>p</code> |
<code>h6</code>, or <code>p</code> |
178 |
<td><code>align</code> |
<td><code>align</code> |
179 |
<td>Enumerated attribute [HTML5] |
<td>Enumerated attribute [HTML5] |
180 |
|
|
181 |
<tr><td><code>img</code> or <code>object</code><td><code>align</code> |
<tr><td><code>img</code> or <code>object</code><td><code>align</code> |
182 |
<td>Enumerated attribute [HTML5] |
<td>Enumerated attribute [HTML5] |
183 |
|
|
184 |
|
<tr><td><code>input</code> (<code>type</code> attribute is in |
185 |
|
Image Button state) |
186 |
|
<td><code>align</code> |
187 |
|
<td>Enumerated attribute [HTML5], where keywords are: <code>top</code>, |
188 |
|
<code>middle</code>, <code>bottom</code>, <code>left</code>, |
189 |
|
<code>right</code><!-- Same as HTML4 Transitional DTD definition. See |
190 |
|
also comment below. --> |
191 |
|
|
192 |
<tr><td><code>br</code><td><code>clear</code> |
<tr><td><code>br</code><td><code>clear</code> |
193 |
<td>Enumerated attribute [HTML5] |
<td>Enumerated attribute [HTML5] |
194 |
<tr><td><code>param</code><td><code>valuetype</code> |
<tr><td><code>param</code><td><code>valuetype</code> |
198 |
<tr><td><code>ul</code>, <code>ol</code>, <code>dir</code>, |
<tr><td><code>ul</code>, <code>ol</code>, <code>dir</code>, |
199 |
<code>menu</code>, or <code>dl</code><td><code>compact</code> |
<code>menu</code>, or <code>dl</code><td><code>compact</code> |
200 |
<td>Boolean attribute [HTML5] |
<td>Boolean attribute [HTML5] |
201 |
|
|
202 |
|
<tr><td><code>input</code> (<code>type</code> attribute is in Image |
203 |
|
Button<!-- @@ ref --> state) |
204 |
|
<td><code>ismap</code> |
205 |
|
<td>Boolean attribute [HTML5] |
206 |
|
|
207 |
<tr><td><code>table</code><td><code>frame</code> or <code>rules</code> |
<tr><td><code>table</code><td><code>frame</code> or <code>rules</code> |
208 |
<td>Enumerated attribute [HTML5] |
<td>Enumerated attribute [HTML5] |
209 |
<tr><td><code>td</code><td><code>scope</code> |
<tr><td><code>td</code><td><code>scope</code> |
213 |
<code>colgroup</code>, <code>col</code>, <code>tr</code>, <code>td</code>, |
<code>colgroup</code>, <code>col</code>, <code>tr</code>, <code>td</code>, |
214 |
or <code>th</code><td><code>align</code> or <code>valign</code> |
or <code>th</code><td><code>align</code> or <code>valign</code> |
215 |
<td>Enumerated attribute [HTML5] |
<td>Enumerated attribute [HTML5] |
216 |
|
|
217 |
|
<tr><td><code>input</code> (<code>type</code> attribute is in |
218 |
|
Image Button<!-- @@ ref --> or Submit Button<!-- @@ ref --> state) |
219 |
|
<td><code>replace</code> |
220 |
|
<td>Enumerated attribute [HTML5] |
221 |
|
|
222 |
<tr><td><code>link</code><td><code>target</code> |
<tr><td><code>link</code><td><code>target</code> |
223 |
<td>Valid browsing context name or keyword [HTML5] |
<td>Valid browsing context name or keyword [HTML5] |
224 |
<tr id=html-meta-scheme><td><code>meta</code><td><code>schema</code> |
<tr id=html-meta-scheme><td><code>meta</code><td><code>schema</code> |
260 |
</table> |
</table> |
261 |
</ul> |
</ul> |
262 |
|
|
263 |
|
<p>For an <code>input</code> element whose <code>type</code> attribute |
264 |
|
is <code>add</code>, <code>remove</code>, <code>move-up</code>, or |
265 |
|
<code>move-down</code> (ASCII case-insensitive<!-- ref -->) [WF2], |
266 |
|
attributes that is not allowed for an <code>input</code> element whose |
267 |
|
<code>type</code> attribute is in the Button state<!-- ref --> <em |
268 |
|
class=rfc2119>MUST NOT</em> be specified.<!-- Whether an attribute is |
269 |
|
applicable or not is normatively defined in the table in the Appendix |
270 |
|
B of the Web Forms 2.0 specification. However, there is no clause |
271 |
|
that states that use of an attribute that is not applied is |
272 |
|
non-conforming. Note that the <code>template</code> attribute, which |
273 |
|
is applied to the <code>add</code> attribute according to Web Forms |
274 |
|
2.0, is defined as a global attribute (with different semantics and |
275 |
|
syntax) by HTML5 as part of the data template feature. --> |
276 |
|
|
277 |
|
<p>The <code>inputmode</code> attribute applies to an |
278 |
|
<code>input</code> element in Text, E-mail, URL, or Password<!-- @@ |
279 |
|
refs --> state. The <code>replace</code> attribute applies to an |
280 |
|
<code>input</code> element in Image Button or Submit Button<!-- @@ |
281 |
|
refs --> state.<!-- In WF2 normative table, but no MUST NOT there. --> |
282 |
|
The <code>usemap</code> attribute applies to an <code>input</code> |
283 |
|
element in Image Button<!-- @@ ref --> state.<!-- In HTML5 prior to |
284 |
|
r997, usemap="" MAY be specified to an input element with Image (now |
285 |
|
Image Button) state, but Image state was not defined yet and there |
286 |
|
were no "MUST NOT".--> The <code>align</code> attribute applies to an |
287 |
|
<code>input</code> element in Image Button state.<!-- In HTML4, to |
288 |
|
which state(s) this attribute is applied is not defined at all. In |
289 |
|
addition, the reference to the definition of the attribute is linked |
290 |
|
to a wrong place (align attribute of p element and so on). In HTML |
291 |
|
2.x, DTD comment implies that this attribute applies to type=image. |
292 |
|
In HTML 2.0, this attribute is only explained for type=image in the |
293 |
|
prose. --> Any of these attributes <em class=rfc2119>MUST NOT</em> be |
294 |
|
specified for an <code>input</code> element whose <code>type</code> |
295 |
|
attribute is in a state where the attribute does not apply. |
296 |
|
|
297 |
<p id=cache-manifest>The |
<p id=cache-manifest>The |
298 |
<a href="http://www.whatwg.org/specs/web-apps/current-work/#manifests">cache |
<a href="http://www.whatwg.org/specs/web-apps/current-work/#manifests">cache |
299 |
manifest syntax</a> is also supported. |
manifest syntax</a> is also supported. |