[html5] r1115 - /

whatwg at whatwg.org whatwg at whatwg.org
Wed Oct 31 02:36:04 PDT 2007


Author: ianh
Date: 2007-10-31 02:36:03 -0700 (Wed, 31 Oct 2007)
New Revision: 1115

Modified:
   index
   source
Log:
[c] (0) require attributes on <base>; mention that <base> can't be before <html>...; remove the vestiges of per-attribute annotations in the element <dl>s; do some cleanup; require href='' on the <a> that contains an ismap='' image

Modified: index
===================================================================
--- index	2007-10-31 09:08:08 UTC (rev 1114)
+++ index	2007-10-31 09:36:03 UTC (rev 1115)
@@ -7030,12 +7030,20 @@
   <p>There must be no more than one <code><a href="#base">base</a></code>
    element per document.
 
+  <p>A <code><a href="#base">base</a></code> element must have either an
+   <code title=attr-base-href><a href="#href">href</a></code> attribute, a
+   <code title=attr-base-target><a href="#target">target</a></code>
+   attribute, or both.
+
   <p>The <dfn id=href title=attr-base-href><code>href</code></dfn> content
    attribute, if specified, must contain a URI (or IRI).
 
   <p>A <code><a href="#base">base</a></code> element, if it has an <code
    title=attr-base-href><a href="#href">href</a></code> attribute, must come
-   before any other elements in the tree that have attributes with URIs.
+   before any other elements in the tree that have attributes with URIs
+   (except the <code><a href="#html">html</a></code> element and its <code
+   title=attr-html-manifest><a href="#manifest">manifest</a></code>
+   attribute).
 
   <p>User agents must use the value of the <code
    title=att-base-href>href</code> attribute of the first <code><a
@@ -7093,9 +7101,9 @@
 
    <dt>Element-specific attributes:
 
-   <dd><code title=attr-link-href><a href="#href1">href</a></code> (required)
+   <dd><code title=attr-link-href><a href="#href1">href</a></code>
 
-   <dd><code title=attr-link-rel><a href="#rel">rel</a></code> (required)
+   <dd><code title=attr-link-rel><a href="#rel">rel</a></code>
 
    <dd><code title=attr-link-media><a href="#media0">media</a></code>
 
@@ -9955,9 +9963,7 @@
    href="#hreflang3">hreflang</a></code>, and <code
    title=attr-hyperlink-type><a href="#type17">type</a></code> attributes
    must be omitted if the <code title=attr-hyperlink-href><a
-   href="#href6">href</a></code> attribute is not present.</p>
-  <!-- XXX really? that makes it harder to use as a
-  placeholder. -->
+   href="#href6">href</a></code> attribute is not present.
 
   <div class=example>
    <p>If a site uses a consistent navigation toolbar on every page, then the
@@ -11779,7 +11785,7 @@
    <dt>Element-specific attributes:
 
    <dd>None, but the <code title=attr-dir><a href="#dir">dir</a></code>
-    global attribute is required on this element.
+    global attribute has special requirements on this element.
 
    <dt>DOM interface:
 
@@ -12110,13 +12116,11 @@
 
    <dd><code title=attr-img-alt><a href="#alt">alt</a></code>
 
-   <dd><code title=attr-img-src><a href="#src">src</a></code> (required)
+   <dd><code title=attr-img-src><a href="#src">src</a></code>
 
    <dd><code title=attr-hyperlink-usemap><a href="#usemap1">usemap</a></code>
 
-   <dd><code title=attr-img-ismap><a href="#ismap">ismap</a></code> (but only
-    if one of the ancestor elements is an <code><a href="#a">a</a></code>
-    element)
+   <dd><code title=attr-img-ismap><a href="#ismap">ismap</a></code>
 
    <dd><code title=attr-dim-width><a href="#width3">width</a></code>
 
@@ -12599,7 +12603,8 @@
   <p>The <code title=attr-img-ismap><a href="#ismap">ismap</a></code>
    attribute is a <a href="#boolean0">boolean attribute</a>. The attribute
    must not be specified on an element that does not have an ancestor
-   <code><a href="#a">a</a></code> element.
+   <code><a href="#a">a</a></code> element with an <code
+   title=attr-hyperlink-href><a href="#href6">href</a></code> attribute.
 
   <p>The <code><a href="#img">img</a></code> element supports <a
    href="#dimension0">dimension attributes</a>.
@@ -12759,7 +12764,7 @@
 
    <dt>Element-specific attributes:
 
-   <dd><code title=attr-embed-src><a href="#src3">src</a></code> (required)
+   <dd><code title=attr-embed-src><a href="#src3">src</a></code>
 
    <dd><code title=attr-embed-type><a href="#type4">type</a></code>
 
@@ -12902,13 +12907,9 @@
 
    <dt>Element-specific attributes:
 
-   <dd><code title=attr-object-data><a href="#data">data</a></code> (required
-    if <code title=attr-object-type><a href="#type6">type</a></code> is not
-    given)
+   <dd><code title=attr-object-data><a href="#data">data</a></code>
 
    <dd><code title=attr-object-type><a href="#type6">type</a></code>
-    (required if <code title=attr-object-data><a href="#data">data</a></code>
-    is not given)
 
    <dd><code title=attr-hyperlink-usemap><a href="#usemap1">usemap</a></code>
 
@@ -13177,10 +13178,8 @@
    <dt>Element-specific attributes:
 
    <dd><code title=attr-param-name><a href="#name1">name</a></code>
-    (required)
 
    <dd><code title=attr-param-value><a href="#value5">value</a></code>
-    (required)
 
    <dt>DOM interface:
 
@@ -15664,7 +15663,7 @@
 
    <dt>Element-specific attributes:
 
-   <dd><code title=attr-source-src><a href="#src7">src</a></code> (required)
+   <dd><code title=attr-source-src><a href="#src7">src</a></code>
 
    <dd><code title=attr-source-type><a href="#type8">type</a></code>
 
@@ -17384,8 +17383,8 @@
 
    <dt>Element-specific attributes:
 
-   <dd>None, but the <code title=attr-id><a href="#id">id</a></code>
-    attribute is required.
+   <dd>None, but the <code title=attr-id><a href="#id">id</a></code> global
+    attribute has special requirements on this element.
 
    <dt>DOM interface:
 
@@ -18330,9 +18329,7 @@
 
    <dt>Element-specific attributes:
 
-   <dd><code title=attr-colgroup-span><a href="#span0">span</a></code>, but
-    only if the element contains no <code><a href="#col">col</a></code>
-    elements
+   <dd><code title=attr-colgroup-span><a href="#span0">span</a></code>
 
    <dt>DOM interface:
 

Modified: source
===================================================================
--- source	2007-10-31 09:08:08 UTC (rev 1114)
+++ source	2007-10-31 09:36:03 UTC (rev 1115)
@@ -5541,12 +5541,18 @@
   <p>There must be no more than one <code>base</code> element per
   document.</p>
 
+  <p>A <code>base</code> element must have either an <code
+  title="attr-base-href">href</code> attribute, a <code
+  title="attr-base-target">target</code> attribute, or both.</p>
+
   <p>The <dfn title="attr-base-href"><code>href</code></dfn> content
   attribute, if specified, must contain a URI (or IRI).</p>
 
   <p>A <code>base</code> element, if it has an <code
   title="attr-base-href">href</code> attribute, must come before any
-  other elements in the tree that have attributes with URIs.</p>
+  other elements in the tree that have attributes with URIs (except
+  the <code>html</code> element and its <code
+  title="attr-html-manifest">manifest</code> attribute).</p>
 
   <p>User agents must use the value of the <code
   title="att-base-href">href</code> attribute of the first
@@ -5599,8 +5605,8 @@
    <dt>Content model:</dt>
    <dd>Empty.</dd>
    <dt>Element-specific attributes:</dt>
-   <dd><code title="attr-link-href">href</code> (required)</dd>
-   <dd><code title="attr-link-rel">rel</code> (required)</dd>
+   <dd><code title="attr-link-href">href</code></dd>
+   <dd><code title="attr-link-rel">rel</code></dd>
    <dd><code title="attr-link-media">media</code></dd>
    <dd><code title="attr-link-hreflang">hreflang</code></dd>
    <dd><code title="attr-link-type">type</code></dd>
@@ -8097,8 +8103,7 @@
   title="attr-hyperlink-hreflang">hreflang</code>, and <code
   title="attr-hyperlink-type">type</code> attributes must be omitted
   if the <code title="attr-hyperlink-href">href</code> attribute is
-  not present.</p> <!-- XXX really? that makes it harder to use as a
-  placeholder. -->
+  not present.</p>
 
   <div class="example">
    <p>If a site uses a consistent navigation toolbar on every page,
@@ -9729,7 +9734,7 @@
    <dt>Content model:</dt>
    <dd><span>Strictly inline-level content</span>.</dd>
    <dt>Element-specific attributes:</dt>
-   <dd>None, but the <code title="attr-dir">dir</code> global attribute is required on this element.</dd>
+   <dd>None, but the <code title="attr-dir">dir</code> global attribute has special requirements on this element.</dd>
    <dt>DOM interface:</dt>
    <dd>No difference from <code>HTMLElement</code>.</dd>
   </dl>
@@ -9738,22 +9743,24 @@
   Unicode bidi algorithm by explicitly specifying a direction
   override. <a href="#refsBIDI">[BIDI]</a></p>
 
-  <p>Authors must specify the <code title="attr-dir">dir</code> attribute on this
-  element, with the value <code>ltr</code> to specify a left-to-right
-  override and with the value <code>rtl</code> to specify a
-  right-to-left override.</p>
+  <p>Authors must specify the <code title="attr-dir">dir</code>
+  attribute on this element, with the value <code>ltr</code> to
+  specify a left-to-right override and with the value <code>rtl</code>
+  to specify a right-to-left override.</p>
 
-  <p>If the element has the <code title="attr-dir">dir</code> attribute set to the
-  exact value <code>ltr</code>, then for the purposes of the bidi
-  algorithm, the user agent must act as if there was a U+202D
-  LEFT-TO-RIGHT OVERRIDE character at the start of the element, and a
-  U+202C POP DIRECTIONAL FORMATTING at the end of the element.</p>
+  <p>If the element has the <code title="attr-dir">dir</code>
+  attribute set to the exact value <code>ltr</code>, then for the
+  purposes of the bidi algorithm, the user agent must act as if there
+  was a U+202D LEFT-TO-RIGHT OVERRIDE character at the start of the
+  element, and a U+202C POP DIRECTIONAL FORMATTING at the end of the
+  element.</p>
 
-  <p>If the element has the <code title="attr-dir">dir</code> attribute set to the
-  exact value <code>rtl</code>, then for the purposes of the bidi
-  algorithm, the user agent must act as if there was a U+202E
-  RIGHT-TO-LEFT OVERRIDE character at the start of the element, and a
-  U+202C POP DIRECTIONAL FORMATTING at the end of the element.</p>
+  <p>If the element has the <code title="attr-dir">dir</code>
+  attribute set to the exact value <code>rtl</code>, then for the
+  purposes of the bidi algorithm, the user agent must act as if there
+  was a U+202E RIGHT-TO-LEFT OVERRIDE character at the start of the
+  element, and a U+202C POP DIRECTIONAL FORMATTING at the end of the
+  element.</p>
 
   <p>The requirements on handling the <code>bdo</code> element for the
   bidi algorithm may be implemented indirectly through the style
@@ -10001,9 +10008,9 @@
    <dd>Empty.</dd>
    <dt>Element-specific attributes:</dt>
    <dd><code title="attr-img-alt">alt</code></dd>
-   <dd><code title="attr-img-src">src</code> (required)</dd>
+   <dd><code title="attr-img-src">src</code></dd>
    <dd><code title="attr-hyperlink-usemap">usemap</code></dd>
-   <dd><code title="attr-img-ismap">ismap</code> (but only if one of the ancestor elements is an <code>a</code> element)</dd>
+   <dd><code title="attr-img-ismap">ismap</code></dd>
    <dd><code title="attr-dim-width">width</code></dd>
    <dd><code title="attr-dim-height">height</code></dd>
    <dt>DOM interface:</dt>
@@ -10536,8 +10543,8 @@
 
   <p>The <code title="attr-img-ismap">ismap</code> attribute is a
   <span>boolean attribute</span>. The attribute must not be specified
-  on an element that does not have an ancestor <code>a</code>
-  element.</p>
+  on an element that does not have an ancestor <code>a</code> element
+  with an <code title="attr-hyperlink-href">href</code> attribute.</p>
 
   <p>The <code>img</code> element supports <span>dimension
   attributes</span>.</p>
@@ -10671,7 +10678,7 @@
    <dt>Content model:</dt>
    <dd>Empty.</dd>
    <dt>Element-specific attributes:</dt>
-   <dd><code title="attr-embed-src">src</code> (required)</dd>
+   <dd><code title="attr-embed-src">src</code></dd>
    <dd><code title="attr-embed-type">type</code></dd>
    <dd><code title="attr-dim-width">width</code></dd>
    <dd><code title="attr-dim-height">height</code></dd>
@@ -10801,8 +10808,8 @@
    <dd>Otherwise: Zero or more <code>param</code> elements, followed
    by <span>inline-level content</span>.</dd>
    <dt>Element-specific attributes:</dt>
-   <dd><code title="attr-object-data">data</code> (required if <code title="attr-object-type">type</code> is not given)</dd>
-   <dd><code title="attr-object-type">type</code> (required if <code title="attr-object-data">data</code> is not given)</dd>
+   <dd><code title="attr-object-data">data</code></dd>
+   <dd><code title="attr-object-type">type</code></dd>
    <dd><code title="attr-hyperlink-usemap">usemap</code></dd>
    <dd><code title="attr-dim-width">width</code></dd>
    <dd><code title="attr-dim-height">height</code></dd>
@@ -11080,8 +11087,8 @@
    <dt>Content model:</dt>
    <dd>Empty.</dd>
    <dt>Element-specific attributes:</dt>
-   <dd><code title="attr-param-name">name</code> (required)</dd>
-   <dd><code title="attr-param-value">value</code> (required)</dd>
+   <dd><code title="attr-param-name">name</code></dd>
+   <dd><code title="attr-param-value">value</code></dd>
    <dt>DOM interface:</dt>
    <dd>
 <pre class="idl">interface <dfn>HTMLParamElement</dfn> : <span>HTMLElement</span> {
@@ -13274,7 +13281,7 @@
    <dt>Content model:</dt>
    <dd>Empty.</dd>
    <dt>Element-specific attributes:</dt>
-   <dd><code title="attr-source-src">src</code> (required)</dd>
+   <dd><code title="attr-source-src">src</code></dd>
    <dd><code title="attr-source-type">type</code></dd>
    <dd><code title="attr-source-media">media</code></dd>
    <dt>DOM interface:</dt>
@@ -14995,7 +15002,7 @@
    <dt>Content model:</dt>
    <dd>Zero or more <span>block-level elements</span>.</dd>
    <dt>Element-specific attributes:</dt>
-   <dd>None, but the <code title="attr-id">id</code> attribute is required.</dd>
+   <dd>None, but the <code title="attr-id">id</code> global attribute has special requirements on this element.</dd>
    <dt>DOM interface:</dt>
    <dd>
 <pre class="idl">interface <dfn>HTMLMapElement</dfn> : <span>HTMLElement</span> {
@@ -15844,7 +15851,7 @@
    <dt>Content model:</dt>
    <dd>Zero or more <code>col</code> elements.</dd>
    <dt>Element-specific attributes:</dt>
-   <dd><code title="attr-colgroup-span">span</code>, but only if the element contains no <code>col</code> elements</dd>
+   <dd><code title="attr-colgroup-span">span</code></dd>
    <dt>DOM interface:</dt>
    <dd>
 <pre class="idl">interface <dfn>HTMLTableColElement</dfn> : <span>HTMLElement</span> {




More information about the Commit-Watchers mailing list