- From: Simon Pieters via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 29 Feb 2012 14:43:30 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/html4-differences In directory hutz:/tmp/cvs-serv23167 Modified Files: Overview.src.html Log Message: xref stuff, fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=12696 Index: Overview.src.html =================================================================== RCS file: /sources/public/html5/html4-differences/Overview.src.html,v retrieving revision 1.140 retrieving revision 1.141 diff -u -d -r1.140 -r1.141 --- Overview.src.html 4 Aug 2011 12:59:17 -0000 1.140 +++ Overview.src.html 29 Feb 2012 14:43:28 -0000 1.141 @@ -42,6 +42,7 @@ <dt>Previous Versions:</dt> <dd><a href="http://www.w3.org/TR/2011/WD-html5-diff-20110405/">http://www.w3.org/TR/2011/WD-html5-diff-20110405/</a></dd> + <dd><a href="http://www.w3.org/TR/2011/WD-html5-diff-20110405/">http://www.w3.org/TR/2011/WD-html5-diff-20110405/</a></dd> <dd><a href="http://www.w3.org/TR/2011/WD-html5-diff-20110113/">http://www.w3.org/TR/2011/WD-html5-diff-20110113/</a></dd> <dd><a href="http://www.w3.org/TR/2010/WD-html5-diff-20101019/">http://www.w3.org/TR/2010/WD-html5-diff-20101019/</a></dd> <dd><a href="http://www.w3.org/TR/2010/WD-html5-diff-20100624/">http://www.w3.org/TR/2010/WD-html5-diff-20100624/</a></dd> @@ -180,8 +181,8 @@ <p>User agents, however, will always have to support these older elements and attributes and this is why the HTML5 specification clearly separates requirements for authors and user agents. For instance, this - means that authors cannot use the <code>isindex</code> or the - <code>plaintext</code> element, but user agents are required to support + means that authors cannot use the <code data-anolis-spec=html>isindex</code> or the + <code data-anolis-spec=html>plaintext</code> element, but user agents are required to support them in a way that is compatible with how these elements need to behave for compatibility with deployed content.</p> @@ -272,7 +273,7 @@ the file. This character provides a signature for the encoding used.</li> - <li>Using a <code>meta</code> element with a <code>charset</code> + <li>Using a <code data-anolis-spec=html>meta</code> element with a <code data-anolis-spec=html title=attr-meta-charset>charset</code> attribute that specifies the encoding within the first 1024 bytes of the document. E.g. <code><meta charset="UTF-8"></code> could be used to specify the UTF-8 encoding. This replaces the need @@ -327,7 +328,7 @@ <li>HTML now has native support for IRIs, though they can only be fully used if the document encoding is UTF-8 or UTF-16.</li> - <li>The <code>lang</code> attribute takes the empty string in addition + <li>The <code data-anolis-spec=html title=attr-lang>lang</code> attribute takes the empty string in addition to a valid language identifier, just like <code>xml:lang</code> does in XML.</li> </ul> @@ -348,8 +349,8 @@ <li><p><code data-anolis-spec=html>section</code> represents a generic document or application section. It can be <span data-anolis-spec=html title="Headings and sections">used together</span> - with the <code>h1</code>, <code>h2</code>, <code>h3</code>, - <code>h4</code>, <code>h5</code>, and <code>h6</code> elements to + with the <code data-anolis-spec=html>h1</code>, <code data-anolis-spec=html>h2</code>, <code data-anolis-spec=html>h3</code>, + <code data-anolis-spec=html>h4</code>, <code data-anolis-spec=html>h5</code>, and <code data-anolis-spec=html>h6</code> elements to indicate the document structure.</p></li> <li><p><code data-anolis-spec=html>article</code> @@ -444,7 +445,7 @@ <li> <p><code data-anolis-spec=html>datalist</code> - together with the a new <code>list</code> attribute for + together with the a new <code data-anolis-spec=html title=attr-input-list>list</code> attribute for <code data-anolis-spec=html>input</code> can be used to make comboboxes:</p> <pre><code><input <strong>list="browsers"</strong>> @@ -464,7 +465,7 @@ through scripting.</p></li> </ul> - <p>The <code data-anolis-spec=html>input</code> element's <code>type</code> attribute now has the + <p>The <code data-anolis-spec=html>input</code> element's <code data-anolis-spec=html title=attr-input-type>type</code> attribute now has the following new values:</p> <ul> @@ -508,45 +509,45 @@ that were already part of HTML4:</p> <ul> - <li><p>The <code>a</code> and <code>area</code> elements now have a - <code>media</code> attribute for consistency with the <code>link</code> + <li><p>The <code data-anolis-spec=html>a</code> and <code data-anolis-spec=html>area</code> elements now have a + <code data-anolis-spec=html title=attr-hyperlink-media>media</code> attribute for consistency with the <code data-anolis-spec=html>link</code> element. - <li><p>The <code>area</code> element, for consistency with the - <code>a</code> and <code>link</code> elements, now also has the - <code>hreflang</code>, <code>type</code> and <code>rel</code> attributes. + <li><p>The <code data-anolis-spec=html>area</code> element, for consistency with the + <code data-anolis-spec=html>a</code> and <code data-anolis-spec=html>link</code> elements, now also has the + <code data-anolis-spec=html title=attr-hyperlink-hreflang>hreflang</code>, <code data-anolis-spec=html title=attr-hyperlink-type>type</code> and <code data-anolis-spec=html title=attr-hyperlink-rel>rel</code> attributes. - <li><p>The <code>base</code> element can now have a <code>target</code> + <li><p>The <code data-anolis-spec=html>base</code> element can now have a <code data-anolis-spec=html title=attr-base-target>target</code> attribute as well, mainly for consistency with the - <code>a</code> element. (This is already widely supported.) + <code data-anolis-spec=html>a</code> element. (This is already widely supported.) - <li><p>The <code>meta</code> element has a <code>charset</code> + <li><p>The <code data-anolis-spec=html>meta</code> element has a <code data-anolis-spec=html title=attr-meta-charset>charset</code> attribute now as this was already widely supported and provides a nice way to specify the <a href="#character-encoding">character encoding</a> for the document. - <li><p>A new <code>autofocus</code> attribute can be specified on the - <code>input</code> (except when the <code>type</code> attribute is - <code>hidden</code>), <code>select</code>, <code>textarea</code> and - <code>button</code> elements. It provides a declarative way to focus a + <li><p>A new <code data-anolis-spec=html title=attr-fe-autofocus>autofocus</code> attribute can be specified on the + <code data-anolis-spec=html>input</code> (except when the <code data-anolis-spec=html title=attr-input-type>type</code> attribute is + <code data-anolis-spec=html title=attr-input-type-hidden>hidden</code>), <code data-anolis-spec=html>select</code>, <code data-anolis-spec=html>textarea</code> and + <code data-anolis-spec=html>button</code> elements. It provides a declarative way to focus a form control during page load. Using this feature should enhance the user experience as the user can turn it off if the user does not like it, for instance. <li> - <p>A new <code>placeholder</code> attribute can be specified on - the <code>input</code> and <code>textarea</code> elements. It + <p>A new <code data-anolis-spec=html title=attr-input-placeholder>placeholder</code> attribute can be specified on + the <code data-anolis-spec=html>input</code> and <code data-anolis-spec=html>textarea</code> elements. It represents a hint intended to aid the user with data entry.</p> <pre><code><input type=email <strong>placeholder="a@b.com"</strong>></code></pre> </li> <li> - <p>The new <code>form</code> attribute for <code>input</code>, - <code>output</code>, <code>select</code>, <code>textarea</code>, - <code>button</code>, <code>label</code>, <code>object</code> and <code>fieldset</code> elements allows for + <p>The new <code data-anolis-spec=html title=attr-fae-form>form</code> attribute for <code data-anolis-spec=html>input</code>, + <code data-anolis-spec=html>output</code>, <code data-anolis-spec=html>select</code>, <code data-anolis-spec=html>textarea</code>, + <code data-anolis-spec=html>button</code>, <code data-anolis-spec=html>label</code>, <code data-anolis-spec=html>object</code> and <code data-anolis-spec=html>fieldset</code> elements allows for controls to be associated with a form. These elements can now be placed anywhere on a page, not just as descendants of the - <code>form</code> element, and still be associated with a <code>form</code>.</p> + <code data-anolis-spec=html>form</code> element, and still be associated with a <code data-anolis-spec=html>form</code>.</p> <pre><code><label>Email: <input type=email <strong>form=foo</strong> name=email> @@ -555,11 +556,11 @@ </div> </li> - <li><p>The new <code>required</code> attribute applies to - <code>input</code> (except when the <code>type</code> attribute is - <code>hidden</code>, <code>image</code> or some button type such as - <code>submit</code>), <code>select</code> and <code>textarea</code>. It indicates that the user - has to fill in a value in order to submit the form. For <code>select</code>, the first <code>option</code> element has to be a placeholder with an empty value. + <li><p>The new <code data-anolis-spec=html title=attr-input-required>required</code> attribute applies to + <code data-anolis-spec=html>input</code> (except when the <code data-anolis-spec=html title=attr-input-type>type</code> attribute is + <code data-anolis-spec=html title=attr-input-type-hidden>hidden</code>, <code data-anolis-spec=html title=attr-input-type-image>image</code> or some button type such as + <code data-anolis-spec=html title=attr-input-type-submit>submit</code>), <code data-anolis-spec=html>select</code> and <code data-anolis-spec=html>textarea</code>. It indicates that the user + has to fill in a value in order to submit the form. For <code data-anolis-spec=html>select</code>, the first <code data-anolis-spec=html>option</code> element has to be a placeholder with an empty value. <pre><code><label>Color: <select name=color <strong>required</strong>> <option <strong>value=""</strong>>Choose one @@ -568,104 +569,104 @@ <option>Blue </select></label></code></pre> - <li><p>The <code>fieldset</code> element now allows the - <code>disabled</code> attribute which disables all descendant controls - when specified, and the <code>name</code> attribute which can be used for script access. + <li><p>The <code data-anolis-spec=html>fieldset</code> element now allows the + <code data-anolis-spec=html title=attr-fieldset-disabled>disabled</code> attribute which disables all descendant controls + when specified, and the <code data-anolis-spec=html title=attr-fe-name>name</code> attribute which can be used for script access. - <li><p>The <code>input</code> element has several new attributes to - specify constraints: <code>autocomplete</code>, <code>min</code>, - <code>max</code>, <code>multiple</code>, <code>pattern</code> and - <code>step</code>. As mentioned before it also has a new - <code>list</code> attribute which can be used together with the - <code>datalist</code> element. It also now has the <code>width</code> and <code>height</code> attributes to specify the dimensions of the image when using <code>type=image</code>. + <li><p>The <code data-anolis-spec=html>input</code> element has several new attributes to + specify constraints: <code data-anolis-spec=html title=attr-input-autocomplete>autocomplete</code>, <code data-anolis-spec=html title=attr-input-min>min</code>, + <code data-anolis-spec=html title=attr-input-max>max</code>, <code data-anolis-spec=html title=attr-input-multiple>multiple</code>, <code data-anolis-spec=html title=attr-input-pattern>pattern</code> and + <code data-anolis-spec=html title=attr-input-step>step</code>. As mentioned before it also has a new + <code data-anolis-spec=html title=attr-input-list>list</code> attribute which can be used together with the + <code data-anolis-spec=html>datalist</code> element. It also now has the <code data-anolis-spec=html title=attr-dim-width>width</code> and <code data-anolis-spec=html title=attr-dim-height>height</code> attributes to specify the dimensions of the image when using <code>type=image</code>. - <li><p>The <code>input</code> and <code>textarea</code> elements have - a new attribute named <code>dirname</code> that causes the + <li><p>The <code data-anolis-spec=html>input</code> and <code data-anolis-spec=html>textarea</code> elements have + a new attribute named <code data-anolis-spec=html title=attr-input-dirname>dirname</code> that causes the directionality of the control as set by the user to be submitted as well. - <li><p>The <code>textarea</code> element also has two new attributes, - <code>maxlength</code> and <code>wrap</code> which control max input + <li><p>The <code data-anolis-spec=html>textarea</code> element also has two new attributes, + <code data-anolis-spec=html title=attr-textarea-maxlength>maxlength</code> and <code data-anolis-spec=html title=attr-textarea-wrap>wrap</code> which control max input length and submitted line wrapping behavior, respectively. - <li><p>The <code>form</code> element has a <code>novalidate</code> + <li><p>The <code data-anolis-spec=html>form</code> element has a <code data-anolis-spec=html title=attr-fs-novalidate>novalidate</code> attribute that can be used to disable form validation submission (i.e. the form can always be submitted). - <li><p>The <code>input</code> and <code>button</code> elements have - <code>formaction</code>, <code>formenctype</code>, - <code>formmethod</code>, <code>formnovalidate</code>, and - <code>formtarget</code> as new attributes. If present, they override - the <code>action</code>, <code>enctype</code>, <code>method</code>, - <code>novalidate</code>, and <code>target</code> attributes on the - <code>form</code> element.</p> + <li><p>The <code data-anolis-spec=html>input</code> and <code data-anolis-spec=html>button</code> elements have + <code data-anolis-spec=html title=attr-fs-formaction>formaction</code>, <code data-anolis-spec=html title=attr-fs-formenctype>formenctype</code>, + <code data-anolis-spec=html title=attr-fs-formmethod>formmethod</code>, <code data-anolis-spec=html title=attr-fs-formnovalidate>formnovalidate</code>, and + <code data-anolis-spec=html title=attr-fs-formtarget>formtarget</code> as new attributes. If present, they override + the <code data-anolis-spec=html title=attr-form-action>action</code>, <code data-anolis-spec=html title=attr-form-enctype>enctype</code>, <code data-anolis-spec=html title=attr-form-method>method</code>, + <code data-anolis-spec=html title=attr-fs-novalidate>novalidate</code>, and <code data-anolis-spec=html title=attr-fs-target>target</code> attributes on the + <code data-anolis-spec=html>form</code> element.</p> - <li><p>The <code>menu</code> element has two new attributes: - <code>type</code> and <code>label</code>. They + <li><p>The <code data-anolis-spec=html>menu</code> element has two new attributes: + <code data-anolis-spec=html title=attr-menu-type>type</code> and <code data-anolis-spec=html title=attr-menu-label>label</code>. They allow the element to transform into a menu as found in typical user interfaces as well as providing for context menus in conjunction with the - global <code>contextmenu</code> attribute. + global <code data-anolis-spec=html title=attr-contextmenu>contextmenu</code> attribute. - <li><p>The <code>style</code> element has a new <code>scoped</code> + <li><p>The <code data-anolis-spec=html>style</code> element has a new <code data-anolis-spec=html title=attr-style-scoped>scoped</code> attribute which can be used to enable scoped style sheets. Style rules - within such a <code>style</code> element only apply to the local tree. + within such a <code data-anolis-spec=html>style</code> element only apply to the local tree. - <li><p>The <code>script</code> element has a new attribute called - <code>async</code> that influences script loading and execution. + <li><p>The <code data-anolis-spec=html>script</code> element has a new attribute called + <code data-anolis-spec=html>async</code> that influences script loading and execution. - <li><p>The <code>html</code> element has a new attribute called - <code>manifest</code> that points to an application cache manifest + <li><p>The <code data-anolis-spec=html>html</code> element has a new attribute called + <code data-anolis-spec=html title=attr-html-manifest>manifest</code> that points to an application cache manifest used in conjunction with the API for offline Web applications. - <li><p>The <code>link</code> element has a new attribute called - <code>sizes</code>. It can be used in conjunction with the - <code>icon</code> relationship (set through the <code>rel</code> + <li><p>The <code data-anolis-spec=html>link</code> element has a new attribute called + <code data-anolis-spec=html title=attr-link-sizes>sizes</code>. It can be used in conjunction with the + <code data-anolis-spec=html title=rel-icon>icon</code> relationship (set through the <code data-anolis-spec=html title=attr-link-rel>rel</code> attribute; can be used for e.g. favicons) to indicate the size of the referenced icon. Thus allowing for icons of distinct dimensions. - <li><p>The <code>ol</code> element has a new attribute called - <code>reversed</code>. When present, it indicates that the list order + <li><p>The <code data-anolis-spec=html>ol</code> element has a new attribute called + <code data-anolis-spec=html title=attr-ol-reversed>reversed</code>. When present, it indicates that the list order is descending. - <li><p>The <code>iframe</code> element has three new attributes called - <code>sandbox</code>, <code>seamless</code>, and <code>srcdoc</code> + <li><p>The <code data-anolis-spec=html>iframe</code> element has three new attributes called + <code data-anolis-spec=html title=attr-iframe-sandbox>sandbox</code>, <code data-anolis-spec=html title=attr-iframe-seamless>seamless</code>, and <code data-anolis-spec=html title=attr-iframe-srcdoc>srcdoc</code> which allow for sandboxing content, e.g. blog comments.</p></li> </ul> <p>Several attributes from HTML4 now apply to all elements. These - are called global attributes: <code>accesskey</code>, <code>class</code>, <code>dir</code>, - <code>id</code>, <code>lang</code>, <code>style</code>, - <code>tabindex</code> and <code>title</code>. Additionally, XHTML 1.0 + are called global attributes: <code data-anolis-spec=html title=attr-accesskey>accesskey</code>, <code data-anolis-spec=html title=attr-class>class</code>, <code data-anolis-spec=html title=attr-dir>dir</code>, + <code data-anolis-spec=html title=attr-id>id</code>, <code data-anolis-spec=html title=attr-dir>lang</code>, <code data-anolis-spec=html title=attr-style>style</code>, + <code data-anolis-spec=html title=attr-tabindex>tabindex</code> and <code data-anolis-spec=html title=attr-title>title</code>. Additionally, XHTML 1.0 only allowed <code>xml:space</code> on some elements, which is now allowed on all elements in XHTML documents.</p> <p>There are also several new global attributes:</p> <ul> - <li>The <code>contenteditable</code> attribute indicates that the element + <li>The <code data-anolis-spec=html title=attr-contenteditable>contenteditable</code> attribute indicates that the element is an editable area. The user can change the contents of the element and manipulate the markup. - <li>The <code>contextmenu</code> attribute can be used to point to a + <li>The <code data-anolis-spec=html title=attr-contextmenu>contextmenu</code> attribute can be used to point to a context menu provided by the author. - <li>The <code>data-<var>*</var></code> collection of author-defined + <li>The <code data-anolis-spec=html title="attr-data-*">data-<var>*</var></code> collection of author-defined attributes. Authors can define any attribute they want as long as they prefix it with <code>data-</code> to avoid clashes with future versions of HTML. The only requirement on these attributes is that they are not used for user agent extensions. - <li>The <code>draggable</code> and <code>dropzone</code> attributes + <li>The <code data-anolis-spec=html title=attr-draggable>draggable</code> and <code data-anolis-spec=html title=attr-dropzone>dropzone</code> attributes can be used together with the new drag & drop API. - <li>The <code>hidden</code> attribute indicates that an element is not + <li>The <code data-anolis-spec=html title=attr-hidden>hidden</code> attribute indicates that an element is not yet, or is no longer, relevant. - <li>The <code>role</code> and <code>aria-<var>*</var></code> + <li>The <code data-anolis-spec=html title=wai-aria>role</code> and <code data-anolis-spec=html title=wai-aria>aria-<var>*</var></code> collection attributes which can be used to instruct assistive technology.</li> - <li>The <code>spellcheck</code> attribute allows for hinting whether + <li>The <code data-anolis-spec=html title=attr-spellcheck>spellcheck</code> attribute allows for hinting whether content can be checked for spelling or not. </ul> @@ -673,8 +674,8 @@ <p>HTML5 also makes all event handler attributes from HTML4, which take the form <code>on<var>event-name</var></code>, global attributes and adds several new event handler attributes for new events - it defines. E.g. the <code>play</code> event which is used by the API - for the media elements (<code>video</code> and <code>audio</code>).</p> + it defines. E.g. the <code data-anolis-spec=html title=event-media-play>play</code> event which is used by the API + for the media elements (<code data-anolis-spec=html>video</code> and <code data-anolis-spec=html>audio</code>).</p> <h3 id="changed-elements">Changed Elements</h3> @@ -684,17 +685,17 @@ useful:</p> <ul> - <li><p>The <code>a</code> element without an <code>href</code> + <li><p>The <code data-anolis-spec=html>a</code> element without an <code data-anolis-spec=html title=attr-hyperlink-href>href</code> attribute now represents a placeholder for where a link otherwise might have been placed. It can also contain flow content rather than being restricted to phrasing content.</p></li> - <li><p>The <code>address</code> element is now scoped by the new + <li><p>The <code data-anolis-spec=html>address</code> element is now scoped by the new concept of sectioning.</p></li> - <li><p>The <code>b</code> element now represents a span of text to which attention is being drawn for utilitarian purposes without conveying any extra importance and with no implication of an alternate voice or mood, such as key words in a document abstract, product names in a review, actionable words in interactive text-driven software, or an article lede.</p></li> + <li><p>The <code data-anolis-spec=html>b</code> element now represents a span of text to which attention is being drawn for utilitarian purposes without conveying any extra importance and with no implication of an alternate voice or mood, such as key words in a document abstract, product names in a review, actionable words in interactive text-driven software, or an article lede.</p></li> - <li><p>The <code>cite</code> element now solely represents the title + <li><p>The <code data-anolis-spec=html>cite</code> element now solely represents the title of a work (e.g. a book, a paper, an essay, a poem, a score, a song, a script, a film, a TV show, a game, a sculpture, a painting, a theatre production, a play, an opera, a musical, an exhibition, a legal case @@ -702,77 +703,77 @@ mark up the name of a person is no longer considered conforming.</p></li> - <li><p>The <code>dl</code> element now represents an association list of + <li><p>The <code data-anolis-spec=html>dl</code> element now represents an association list of name-value groups, and is no longer said to be appropriate for dialogue.</p></li> - <li><p>The <code>head</code> element no longer allows the - <code>object</code> element as child.</p></li> + <li><p>The <code data-anolis-spec=html>head</code> element no longer allows the + <code data-anolis-spec=html>object</code> element as child.</p></li> - <li><p>The <code>hr</code> element now represents a paragraph-level + <li><p>The <code data-anolis-spec=html>hr</code> element now represents a paragraph-level thematic break. - <li><p>The <code>i</code> element now represents a span of text in an alternate voice or mood, or otherwise offset from the normal prose in a manner indicating a different quality of text, such as a taxonomic designation, a technical term, an idiomatic phrase from another language, a thought, or a ship name in Western texts.</p></li> + <li><p>The <code data-anolis-spec=html>i</code> element now represents a span of text in an alternate voice or mood, or otherwise offset from the normal prose in a manner indicating a different quality of text, such as a taxonomic designation, a technical term, an idiomatic phrase from another language, a thought, or a ship name in Western texts.</p></li> - <li><p>For the <code>label</code> element the browser should no longer + <li><p>For the <code data-anolis-spec=html>label</code> element the browser should no longer move focus from the label to the control unless such behavior is standard for the underlying platform user interface.</p></li> - <li><p>The <code>menu</code> element is redefined to be useful for + <li><p>The <code data-anolis-spec=html>menu</code> element is redefined to be useful for toolbars and context menus.</p></li> - <li><p>The <code>s</code> element now represents contents that are no + <li><p>The <code data-anolis-spec=html>s</code> element now represents contents that are no longer accurate or no longer relevant.</p></li> - <li><p>The <code>small</code> element now represents side comments such as small print.</p></li> + <li><p>The <code data-anolis-spec=html>small</code> element now represents side comments such as small print.</p></li> - <li><p>The <code>strong</code> element now represents importance rather + <li><p>The <code data-anolis-spec=html>strong</code> element now represents importance rather than strong emphasis.</p></li> - <li><p>The <code>u</code> element now represents a span of text with an unarticulated, though explicitly rendered, non-textual annotation, such as labeling the text as being a proper name in Chinese text (a Chinese proper name mark), or labeling the text as being misspelt.</p></li> + <li><p>The <code data-anolis-spec=html>u</code> element now represents a span of text with an unarticulated, though explicitly rendered, non-textual annotation, such as labeling the text as being a proper name in Chinese text (a Chinese proper name mark), or labeling the text as being misspelt.</p></li> </ul> <h3 id="changed-attributes">Changed Attributes</h3> - <p>The <code>value</code> attribute for the <code>li</code> + <p>The <code data-anolis-spec=html title=attr-li-value>value</code> attribute for the <code data-anolis-spec=html>li</code> element is no longer deprecated as it is not presentational. The same - goes for the <code>start</code> attribute of the <code>ol</code> + goes for the <code data-anolis-spec=html title=attr-ol-start>start</code> attribute of the <code data-anolis-spec=html>ol</code> element. - <p>The <code>target</code> attribute for the <code>a</code> and - <code>area</code> elements is no longer deprecated, as it is useful in - Web applications, e.g. in conjunction with <code>iframe</code>. + <p>The <code data-anolis-spec=html title=attr-hyperlink-target>target</code> attribute for the <code data-anolis-spec=html>a</code> and + <code data-anolis-spec=html>area</code> elements is no longer deprecated, as it is useful in + Web applications, e.g. in conjunction with <code data-anolis-spec=html>iframe</code>. - <p>The <code>type</code> attribute on <code>script</code> and - <code>style</code> is no longer required if the scripting language is + <p>The <code data-anolis-spec=html title=attr-script-type>type</code> attribute on <code data-anolis-spec=html>script</code> and + <code data-anolis-spec=html>style</code> is no longer required if the scripting language is ECMAScript and the styling language is CSS respectively.</p> - <p>The <code>border</code> attribute on <code>table</code> only allows the values "1" and the empty string. + <p>The <code data-anolis-spec=html title=attr-table-border>border</code> attribute on <code data-anolis-spec=html>table</code> only allows the values "1" and the empty string. <p>The following attributes are allowed but authors are discouraged from using them and instead strongly encouraged to use an alternative solution:</p> <ul> - <li><p>The <code>border</code> attribute on <code>img</code>. It is + <li><p>The <code data-anolis-spec=html title=attr-img-border>border</code> attribute on <code data-anolis-spec=html>img</code>. It is required to have the value "<code>0</code>" when present. Authors can use CSS instead.</p></li> - <li><p>The <code>language</code> attribute on <code>script</code>. It + <li><p>The <code data-anolis-spec=html title=attr-script-language>language</code> attribute on <code data-anolis-spec=html>script</code>. It is required to have the value "<code>JavaScript</code>" (case-insensitive) when present and cannot conflict with the - <code>type</code> attribute. Authors can simply omit it as it has no + <code data-anolis-spec=html title=attr-script-type>type</code> attribute. Authors can simply omit it as it has no useful function.</p></li> - <li><p>The <code>name</code> attribute on <code>a</code>. Authors can - use the <code>id</code> attribute instead.</p></li> + <li><p>The <code data-anolis-spec=html title=attr-hyperlink-name>name</code> attribute on <code data-anolis-spec=html>a</code>. Authors can + use the <code data-anolis-spec=html>id</code> attribute instead.</p></li> - <li><p>The <code>summary</code> attribute on <code>table</code>. The + <li><p>The <code data-anolis-spec=html title=attr-table-summary>summary</code> attribute on <code data-anolis-spec=html>table</code>. The HTML5 draft defines several alternative solutions.</p></li> - <li><p>The <code>width</code> and <code>height</code> attributes on - <code>img</code> and other elements are no longer allowed to contain + <li><p>The <code data-anolis-spec=html title=attr-dim-width>width</code> and <code data-anolis-spec=html title=attr-dim-height>height</code> attributes on + <code data-anolis-spec=html>img</code> and other elements are no longer allowed to contain percentages.</p></li> </ul> @@ -781,35 +782,35 @@ <p>The elements in this section are not to be used by authors. User agents will still have to support them and various sections in - HTML5 define how. E.g. the obsolete <code>isindex</code> element + HTML5 define how. E.g. the obsolete <code data-anolis-spec=html>isindex</code> element is handled by the parser section.</p> <p>The following elements are not in HTML5 because their effect is purely presentational and their function is better handled by CSS:</p> <ul> - <li><code>basefont</code> + <li><code data-anolis-spec=html>basefont</code> - <li><code>big</code> + <li><code data-anolis-spec=html>big</code> - <li><code>center</code> + <li><code data-anolis-spec=html>center</code> - <li><code>font</code> + <li><code data-anolis-spec=html>font</code> - <li><code>strike</code> + <li><code data-anolis-spec=html>strike</code> - <li><code>tt</code> + <li><code data-anolis-spec=html>tt</code> </ul> <p>The following elements are not in HTML5 because using them damages usability and accessibility:</p> <ul> - <li><code>frame</code> + <li><code data-anolis-spec=html>frame</code> - <li><code>frameset</code> + <li><code data-anolis-spec=html>frameset</code> - <li><code>noframes</code> + <li><code data-anolis-spec=html>noframes</code> </ul> <p>The following elements are not included because they have not been @@ -817,19 +818,19 @@ elements:</p> <ul> - <li><code>acronym</code> is not included because it has created a lot - of confusion. Authors are to use <code>abbr</code> for + <li><code data-anolis-spec=html>acronym</code> is not included because it has created a lot + of confusion. Authors are to use <code data-anolis-spec=html>abbr</code> for abbreviations.</li> - <li><code>applet</code> has been obsoleted in favor of - <code>object</code>. + <li><code data-anolis-spec=html>applet</code> has been obsoleted in favor of + <code data-anolis-spec=html>object</code>. - <li><code>isindex</code> usage can be replaced by usage of form controls. + <li><code data-anolis-spec=html>isindex</code> usage can be replaced by usage of form controls. - <li><code>dir</code> has been obsoleted in favor of <code>ul</code>. + <li><code data-anolis-spec=html>dir</code> has been obsoleted in favor of <code data-anolis-spec=html>ul</code>. </ul> - <p>Finally the <code>noscript</code> element is only conforming in the + <p>Finally the <code data-anolis-spec=html>noscript</code> element is only conforming in the HTML syntax. It is not included in the XML syntax as its usage relies on an HTML parser.</p> @@ -845,41 +846,41 @@ on what you can use instead.</p> <ul> - <li><code>rev</code> and <code>charset</code> attributes on - <code>link</code> and <code>a</code>. + <li><code data-anolis-spec=html title=attr-a-rev>rev</code> and <code data-anolis-spec=html title=attr-a-charset>charset</code> attributes on + <code data-anolis-spec=html>link</code> and <code data-anolis-spec=html>a</code>. - <li><code>shape</code> and <code>coords</code> attributes on - <code>a</code>. + <li><code data-anolis-spec=html title=attr-a-shape>shape</code> and <code data-anolis-spec=html title=attr-a-coords>coords</code> attributes on + <code data-anolis-spec=html>a</code>. - <li><code>longdesc</code> attribute on <code>img</code> and - <code>iframe</code>. + <li><code data-anolis-spec=html title=attr-iframe-longdesc>longdesc</code> attribute on <code data-anolis-spec=html>img</code> and + <code data-anolis-spec=html>iframe</code>. - <li><code>target</code> attribute on <code>link</code>. + <li><code data-anolis-spec=html title=attr-link-target>target</code> attribute on <code data-anolis-spec=html>link</code>. - <li><code>nohref</code> attribute on <code>area</code>. + <li><code data-anolis-spec=html title=attr-area-nohref>nohref</code> attribute on <code data-anolis-spec=html>area</code>. - <li><code>profile</code> attribute on <code>head</code>. + <li><code data-anolis-spec=html title=attr-head-profile>profile</code> attribute on <code data-anolis-spec=html>head</code>. - <li><code>version</code> attribute on <code>html</code>. + <li><code data-anolis-spec=html title=attr-html-version>version</code> attribute on <code data-anolis-spec=html>html</code>. - <li><code>name</code> attribute on <code>img</code> - (use <code>id</code> instead). + <li><code data-anolis-spec=html title=attr-img-name>name</code> attribute on <code data-anolis-spec=html>img</code> + (use <code data-anolis-spec=html title=attr-id>id</code> instead). - <li><code>scheme</code> attribute on <code>meta</code>. + <li><code data-anolis-spec=html title=attr-meta-scheme>scheme</code> attribute on <code data-anolis-spec=html>meta</code>. - <li><code>archive</code>, <code>classid</code>, <code>codebase</code>, - <code>codetype</code>, <code>declare</code> and <code>standby</code> - attributes on <code>object</code>. + <li><code data-anolis-spec=html title=attr-object-archive>archive</code>, <code data-anolis-spec=html title=attr-object-classid>classid</code>, <code data-anolis-spec=html title=attr-object-codebase>codebase</code>, + <code data-anolis-spec=html title=attr-object-codetype>codetype</code>, <code data-anolis-spec=html title=attr-object-declare>declare</code> and <code data-anolis-spec=html title=attr-object-standby>standby</code> + attributes on <code> data-anolis-spec=htmlobject</code>. - <li><code>valuetype</code> and <code>type</code> attributes on - <code>param</code>. + <li><code data-anolis-spec=html title=attr-param-valuetype>valuetype</code> and <code data-anolis-spec=html title=attr-param-type>type</code> attributes on + <code data-anolis-spec=html>param</code>. - <li><code>axis</code> and <code>abbr</code> - attributes on <code>td</code> and <code>th</code>. + <li><code data-anolis-spec=html title=attr-tdth-axis>axis</code> and <code data-anolis-spec=html title=attr-tdth-abbr>abbr</code> + attributes on <code data-anolis-spec=html>td</code> and <code data-anolis-spec=html>th</code>. - <li><code>scope</code> attribute on <code>td</code>. + <li><code data-anolis-spec=html title=attr-td-scope>scope</code> attribute on <code data-anolis-spec=html>td</code>. - <li><code>summary</code> attribute on <code>table</code>. + <li><code data-anolis-spec=html title=attr-table-summary>summary</code> attribute on <code data-anolis-spec=html>table</code>. </ul> <p>In addition, HTML5 has none of the presentational attributes @@ -887,72 +888,72 @@ CSS:</p> <ul> - <li><code>align</code> attribute on <code>caption</code>, - <code>iframe</code>, <code>img</code>, <code>input</code>, - <code>object</code>, <code>legend</code>, <code>table</code>, - <code>hr</code>, <code>div</code>, <code>h1</code>, <code>h2</code>, - <code>h3</code>, <code>h4</code>, <code>h5</code>, <code>h6</code>, - <code>p</code>, <code>col</code>, <code>colgroup</code>, - <code>tbody</code>, <code>td</code>, <code>tfoot</code>, - <code>th</code>, <code>thead</code> and <code>tr</code>. + <li><code data-anolis-spec=html title=attr-caption-align>align</code> attribute on <code data-anolis-spec=html>caption</code>, + <code data-anolis-spec=html>iframe</code>, <code data-anolis-spec=html>img</code>, <code data-anolis-spec=html>input</code>, + <code data-anolis-spec=html>object</code>, <code data-anolis-spec=html>legend</code>, <code data-anolis-spec=html>table</code>, + <code data-anolis-spec=html>hr</code>, <code data-anolis-spec=html>div</code>, <code data-anolis-spec=html>h1</code>, <code data-anolis-spec=html>h2</code>, + <code data-anolis-spec=html>h3</code>, <code data-anolis-spec=html>h4</code>, <code data-anolis-spec=html>h5</code>, <code data-anolis-spec=html>h6</code>, + <code data-anolis-spec=html>p</code>, <code data-anolis-spec=html>col</code>, <code data-anolis-spec=html>colgroup</code>, + <code data-anolis-spec=html>tbody</code>, <code data-anolis-spec=html>td</code>, <code data-anolis-spec=html>tfoot</code>, + <code data-anolis-spec=html>th</code>, <code data-anolis-spec=html>thead</code> and <code data-anolis-spec=html>tr</code>. - <li><code>alink</code>, <code>link</code>, <code>text</code> and - <code>vlink</code> attributes on <code>body</code>. + <li><code data-anolis-spec=html title=attr-body-alink>alink</code>, <code data-anolis-spec=html title=attr-body-link>link</code>, <code data-anolis-spec=html title=attr-body-text>text</code> and + <code data-anolis-spec=html title=attr-body-vlink>vlink</code> attributes on <code data-anolis-spec=html>body</code>. - <li><code>background</code> attribute on <code>body</code>. + <li><code data-anolis-spec=html tilte=attr-body-background>background</code> attribute on <code data-anolis-spec=html>body</code>. - <li><code>bgcolor</code> attribute on <code>table</code>, <code>tr</code>, - <code>td</code>, <code>th</code> and <code>body</code>. + <li><code data-anolis-spec=html title=attr-body-bgcolor>bgcolor</code> attribute on <code data-anolis-spec=html>table</code>, <code data-anolis-spec=html>tr</code>, + <code data-anolis-spec=html>td</code>, <code data-anolis-spec=html>th</code> and <code data-anolis-spec=html>body</code>. - <li><code>border</code> attribute on <code>object</code>. + <li><code data-anolis-spec=html title=attr-object-border>border</code> attribute on <code data-anolis-spec=html>object</code>. - <li><code>cellpadding</code> and <code>cellspacing</code> attributes on - <code>table</code>. + <li><code data-anolis-spec=html title=attr-table-cellpadding>cellpadding</code> and <code data-anolis-spec=html title=attr-table-cellspacing>cellspacing</code> attributes on + <code data-anolis-spec=html>table</code>. - <li><code>char</code> and <code>charoff</code> attributes on - <code>col</code>, <code>colgroup</code>, <code>tbody</code>, - <code>td</code>, <code>tfoot</code>, <code>th</code>, <code>thead</code> - and <code>tr</code>. + <li><code data-anolis-spec=html title=attr-col-char>char</code> and <code data-anolis-spec=html title=attr-col-charoff>charoff</code> attributes on + <code data-anolis-spec=html>col</code>, <code data-anolis-spec=html>colgroup</code>, <code data-anolis-spec=html>tbody</code>, + <code data-anolis-spec=html>td</code>, <code data-anolis-spec=html>tfoot</code>, <code data-anolis-spec=html>th</code>, <code data-anolis-spec=html>thead</code> + and <code data-anolis-spec=html>tr</code>. - <li><code>clear</code> attribute on <code>br</code>. + <li><code data-anolis-spec=html title=attr-br-clear>clear</code> attribute on <code data-anolis-spec=html>br</code>. - <li><code>compact</code> attribute on <code>dl</code>, <code>menu</code>, - <code>ol</code> and <code>ul</code>. + <li><code data-anolis-spec=html title=attr-dl-compact>compact</code> attribute on <code data-anolis-spec=html>dl</code>, <code data-anolis-spec=html>menu</code>, + <code data-anolis-spec=html>ol</code> and <code data-anolis-spec=html>ul</code>. - <li><code>frame</code> attribute on <code>table</code>. + <li><code data-anolis-spec=html title=attr-table-frame>frame</code> attribute on <code data-anolis-spec=html>table</code>. - <li><code>frameborder</code> attribute on <code>iframe</code>. + <li><code data-anolis-spec=html title=attr-iframe-frameborder>frameborder</code> attribute on <code data-anolis-spec=html title=attr-iframe-frameborder>iframe</code>. - <li><code>height</code> attribute on <code>td</code> and - <code>th</code>. + <li><code data-anolis-spec=html title=attr-tdth-height>height</code> attribute on <code data-anolis-spec=html>td</code> and + <code data-anolis-spec=html>th</code>. - <li><code>hspace</code> and <code>vspace</code> attributes on - <code>img</code> and <code>object</code>. + <li><code data-anolis-spec=html title=attr-img-hspace>hspace</code> and <code data-anolis-spec=html title=attr-img-vspace>vspace</code> attributes on + <code data-anolis-spec=html>img</code> and <code data-anolis-spec=html>object</code>. - <li><code>marginheight</code> and <code>marginwidth</code> attributes on - <code>iframe</code>. + <li><code data-anolis-spec=html title=attr-iframe-marginheight>marginheight</code> and <code data-anolis-spec=html title=attr-iframe-marginwidth>marginwidth</code> attributes on + <code data-anolis-spec=html>iframe</code>. - <li><code>noshade</code> attribute on <code>hr</code>. + <li><code data-anolis-spec=html title=attr-hr-noshade>noshade</code> attribute on <code data-anolis-spec=html>hr</code>. - <li><code>nowrap</code> attribute on <code>td</code> and <code>th</code>. + <li><code data-anolis-spec=html title=attr-tdth-nowrap>nowrap</code> attribute on <code data-anolis-spec=html>td</code> and <code data-anolis-spec=html>th</code>. - <li><code>rules</code> attribute on <code>table</code>. + <li><code data-anolis-spec=html title=attr-table-rules>rules</code> attribute on <code data-anolis-spec=html>table</code>. - <li><code>scrolling</code> attribute on <code>iframe</code>. + <li><code data-anolis-spec=html title=attr-iframe-scrolling>scrolling</code> attribute on <code data-anolis-spec=html>iframe</code>. - <li><code>size</code> attribute on <code>hr</code>. + <li><code data-anolis-spec=html title=attr-hr-size>size</code> attribute on <code data-anolis-spec=html>hr</code>. - <li><code>type</code> attribute on <code>li</code>, <code>ol</code> and - <code>ul</code>. + <li><code data-anolis-spec=html title=attr-li-type>type</code> attribute on <code data-anolis-spec=html>li</code>, <code data-anolis-spec=html>ol</code><!--XXX ol type is no longer obsolete--> and + <code data-anolis-spec=html>ul</code>. - <li><code>valign</code> attribute on <code>col</code>, - <code>colgroup</code>, <code>tbody</code>, <code>td</code>, - <code>tfoot</code>, <code>th</code>, <code>thead</code> and - <code>tr</code>. + <li><code data-anolis-spec=html title=attr-col-valign>valign</code> attribute on <code data-anolis-spec=html>col</code>, + <code data-anolis-spec=html>colgroup</code>, <code data-anolis-spec=html>tbody</code>, <code data-anolis-spec=html>td</code>, + <code data-anolis-spec=html>tfoot</code>, <code data-anolis-spec=html>th</code>, <code data-anolis-spec=html>thead</code> and + <code data-anolis-spec=html>tr</code>. - <li><code>width</code> attribute on <code>hr</code>, <code>table</code>, - <code>td</code>, <code>th</code>, <code>col</code>, <code>colgroup</code> - and <code>pre</code>. + <li><code data-anolis-spec=html title=attr-hr-width>width</code> attribute on <code data-anolis-spec=html>hr</code>, <code data-anolis-spec=html>table</code>, + <code data-anolis-spec=html>td</code>, <code data-anolis-spec=html>th</code>, <code data-anolis-spec=html>col</code>, <code data-anolis-spec=html>colgroup</code> + and <code data-anolis-spec=html>pre</code>. </ul> @@ -965,7 +966,7 @@ <ul> <li>An API for playing of video and audio which can be used with the new - <code>video</code> and <code>audio</code> elements.</li> + <code data-anolis-spec=html>video</code> and <code data-anolis-spec=html>audio</code> elements.</li> <li>An API that enables offline Web applications.</li> @@ -973,9 +974,9 @@ certain protocols or media types.</li> <li>Editing API in combination with a new global - <code>contenteditable</code> attribute.</li> + <code data-anolis-spec=html title=attr-contenteditable>contenteditable</code> attribute.</li> - <li>Drag & drop API in combination with a <code>draggable</code> + <li>Drag & drop API in combination with a <code data-anolis-spec=html title=attr-draggable>draggable</code> attribute.</li> <li>API that exposes the history and allows pages to add to it to prevent @@ -986,48 +987,48 @@ <h3 id="htmldocument-extensions">Extensions to <code>HTMLDocument</code></h3> - <p>HTML5 has extended the <code>HTMLDocument</code> interface from DOM + <p>HTML5 has extended the <code data-anolis-spec=html>HTMLDocument</code><!--XXX changed to Document--> interface from DOM Level 2 HTML in a number of ways. The interface is now implemented on - <em>all</em> objects implementing the <code>Document</code> interface so it + <em>all</em> objects implementing the <code data-anolis-spec=html>Document</code> interface so it stays meaningful in a compound document context. It also has several noteworthy new members:</p> <ul> - <li><p><code>getElementsByClassName()</code> to select elements by their + <li><p><code>getElementsByClassName()</code><!--XXX moved to DOM4--> to select elements by their class name. The way this method is defined will allow it to work for - any content with <code>class</code> attributes and a <code>Document</code> + any content with <code data-anolis-spec=html title=attr-class>class</code> attributes and a <code data-anolis-spec=html>Document</code> object such as SVG and MathML. - <li><p><code>innerHTML</code> as an easy way to parse and serialize an + <li><p><code>innerHTML</code><!--XXX moved--> as an easy way to parse and serialize an HTML or XML document. This attribute was previously only available on - <code>HTMLElement</code> in Web browsers and not part of any standard. + <code data-anolis-spec=html>HTMLElement</code> in Web browsers and not part of any standard. - <li><p><code>activeElement</code> and <code>hasFocus</code> to determine - which element is currently focused and whether the <code>Document</code> + <li><p><code data-anolis-spec=html title=dom-document-activeElement>activeElement</code> and <code data-anolis-spec=html title=dom-document-hasFocus>hasFocus</code> to determine + which element is currently focused and whether the <code data-anolis-spec=html>Document</code> has focus respectively. </ul> <h3 id="htmlelement-extensions">Extensions to <code>HTMLElement</code></h3> - <p>The <code>HTMLElement</code> interface has also gained several extensions + <p>The <code data-anolis-spec=html>HTMLElement</code> interface has also gained several extensions in HTML5:</p> <ul> - <li><p><code>getElementsByClassName()</code> which is basically a scoped - version of the one found on <code>HTMLDocument</code>. + <li><p><code>getElementsByClassName()</code><!--XXX--> which is basically a scoped + version of the one found on <code data-anolis-spec=html>HTMLDocument</code>. - <li><p><code>innerHTML</code> as found in Web browsers today. It is + <li><p><code data-anolis-spec=html>innerHTML</code><!--XXX--> as found in Web browsers today. It is also defined to work in XML context (when it is used in an XML document). - <li><p><code>classList</code> is a convenient accessor for - <code>className</code>. The object it returns, exposes methods + <li><p><code data-anolis-spec=html title=dom-classList>classList</code> is a convenient accessor for + <code data-anolis-spec=html title=dom-className>className</code>. The object it returns, exposes methods (<code>contains()</code>, <code>add()</code>, <code>remove()</code>, and <code>toggle()</code>) for manipulating the element's classes. The - <code>a</code>, <code>area</code> and <code>link</code> elements have - a similar attribute called <code>relList</code> that provides the same - functionality for the <code>rel</code> attribute. + <code data-anolis-spec=html>a</code>, <code data-anolis-spec=html>area</code> and <code data-anolis-spec=html>link</code> elements have + a similar attribute called <code data-anolis-spec=html title=dom-ilnk-rellist>relList</code> that provides the same + functionality for the <code data-anolis-spec=html title=attr-link-rel>rel</code> attribute. </ul> @@ -1685,6 +1686,7 @@ Krijn Hoetmer, Leif Halvard Silli, Maciej Stachowiak, + Mallory van Achterberg<!--stommepoes-->, Marcos Caceres, Mark Pilgrim, Martijn Wargers,
Received on Wednesday, 29 February 2012 14:43:39 UTC