[html5] r1722 - /

whatwg at whatwg.org whatwg at whatwg.org
Thu Jun 5 02:30:13 PDT 2008


Author: ianh
Date: 2008-06-05 02:30:07 -0700 (Thu, 05 Jun 2008)
New Revision: 1722

Modified:
   index
   source
Log:
[ac] (0) Make <map name=''> the preferred way of doing things.

Modified: index
===================================================================
--- index	2008-06-03 11:43:09 UTC (rev 1721)
+++ index	2008-06-05 09:30:07 UTC (rev 1722)
@@ -25,7 +25,7 @@
 
    <h1 id=html-5>HTML 5</h1>
 
-   <h2 class="no-num no-toc" id=draft>Draft Recommendation — 3 June
+   <h2 class="no-num no-toc" id=draft>Draft Recommendation — 5 June
     2008</h2>
 
    <p>You can take part in this work. <a
@@ -6142,14 +6142,13 @@
 
   <h4 id=syntax-references><span class=secno>3.2.8 </span>References</h4>
 
-  <p>A <dfn id=valid7>valid hashed ID reference</dfn> to an element of type
-   <var title="">type</var> is a string consisting of a U+0023 NUMBER SIGN
-   (<code title="">#</code>) character followed by a string which exactly
-   matches the value of the <code title=attr-id><a href="#id">id</a></code>
-   attribute of an element in the document with type <var
-   title="">type</var>.
+  <p>A <dfn id=valid7>valid hashed reference</dfn> to an element of type <var
+   title="">type</var> is a string consisting of a U+0023 NUMBER SIGN (<code
+   title="">#</code>) character followed by a string which exactly matches
+   the value of the <code title=attr-id><a href="#id">id</a></code> attribute
+   of an element in the document with type <var title="">type</var>.
 
-  <p>The <dfn id=rules5>rules for parsing a hashed ID reference</dfn> to an
+  <p>The <dfn id=rules5>rules for parsing a hashed reference</dfn> to an
    element of type <var title="">type</var> are as follows:
 
   <ol>
@@ -20813,14 +20812,14 @@
 
    <dt>Element-specific attributes:
 
-   <dd>None, but the <code title=attr-id><a href="#id">id</a></code> global
-    attribute has special requirements on this element.
+   <dd><code title=attr-map-name><a href="#name7">name</a></code>
 
    <dt>DOM interface:
 
    <dd>
     <pre
      class=idl>interface <dfn id=htmlmapelement>HTMLMapElement</dfn> : <a href="#htmlelement">HTMLElement</a> {
+           attribute DOMString <a href="#name8" title=dom-map-name>name</a>;
   readonly attribute <a href="#htmlcollection0">HTMLCollection</a> <a href="#areas" title=dom-map-areas>areas</a>;
   readonly attribute <a href="#htmlcollection0">HTMLCollection</a> <a href="#images1" title=dom-map-images>images</a>;
 };</pre>
@@ -20830,8 +20829,11 @@
    <code><a href="#area">area</a></code> element descendants, defines an <a
    href="#image">image map</a>.
 
-  <p>There must always be an <code title=attr-id><a href="#id">id</a></code>
-   attribute present on <code><a href="#map">map</a></code> elements.
+  <p>The <dfn id=name7 title=attr-map-name><code>name</code></dfn> attribute
+   gives the map a name so that it can be referenced. The attribute must be
+   present and must have a non-empty value. Whitespace is significant in this
+   attribute's value. If the <code title=attr-id><a href="#id">id</a></code>
+   attribute is also specified, both attributes must have the same value.
 
   <p>The <dfn id=areas title=dom-map-areas><code>areas</code></dfn> attribute
    must return an <code><a href="#htmlcollection0">HTMLCollection</a></code>
@@ -20846,6 +20848,10 @@
    elements that are associated with this <code><a href="#map">map</a></code>
    element according to the <a href="#image">image map</a> processing model.
 
+  <p>The DOM attribute <dfn id=name8
+   title=dom-map-name><code>name</code></dfn> must <a
+   href="#reflect">reflect</a> the content attribute of the same name.
+
   <h4 id=the-area><span class=secno>3.12.13 </span>The <dfn
    id=area><code>area</code></dfn> element</h4>
 
@@ -21124,7 +21130,7 @@
    <code><a href="#img">img</a></code> or <code><a
    href="#object">object</a></code> element. The <code
    title=attr-area-usemap>usemap</code> attribute, if specified, must be a <a
-   href="#valid7">valid hashed ID reference</a> to a <code><a
+   href="#valid7">valid hashed reference</a> to a <code><a
    href="#map">map</a></code> element.
 
   <p>If an <code><a href="#img">img</a></code> element or an <code><a
@@ -21134,9 +21140,9 @@
 
   <ol>
    <li>
-    <p>First, <a href="#rules5">rules for parsing a hashed ID reference</a>
-     to a <code><a href="#map">map</a></code> element must be followed. This
-     will return either an element (the <var title="">map</var>) or null.
+    <p>First, <a href="#rules5">rules for parsing a hashed reference</a> to a
+     <code><a href="#map">map</a></code> element must be followed. This will
+     return either an element (the <var title="">map</var>) or null.
 
    <li>
     <p>If that returned null, then abort these steps. The image is not
@@ -28703,7 +28709,7 @@
   // the current browsing context
   readonly attribute <a href="#window">Window</a> <a href="#window0" title=dom-window>window</a>;
   readonly attribute <a href="#window">Window</a> <a href="#self" title=dom-self>self</a>;
-           attribute DOMString <a href="#name7" title=dom-name>name</a>;
+           attribute DOMString <a href="#name9" title=dom-name>name</a>;
   [PutForwards=href] readonly attribute <a href="#location2">Location</a> <a href="#location0" title=dom-document-location>location</a>;
   readonly attribute <a href="#history2">History</a> <a href="#history1" title=dom-history>history</a>;
   readonly attribute <a href="#undomanager">UndoManager</a> <a href="#undomanager0" title=dom-undoManager>undoManager</a>;
@@ -28963,7 +28969,7 @@
    context</a> that was navigated, or null if no browsing context was
    navigated.
 
-  <p>The <dfn id=name7 title=dom-name><code>name</code></dfn> attribute of
+  <p>The <dfn id=name9 title=dom-name><code>name</code></dfn> attribute of
    the <code><a href="#window">Window</a></code> object must, on getting,
    return the current name of the <a href="#browsing1">browsing context</a>,
    and, on setting, set the name of the <a href="#browsing1">browsing

Modified: source
===================================================================
--- source	2008-06-03 11:43:09 UTC (rev 1721)
+++ source	2008-06-05 09:30:07 UTC (rev 1722)
@@ -4603,14 +4603,14 @@
 
   <h4 id="syntax-references">References</h4>
 
-  <p>A <dfn>valid hashed ID reference</dfn> to an element of type <var
+  <p>A <dfn>valid hashed reference</dfn> to an element of type <var
   title="">type</var> is a string consisting of a U+0023 NUMBER SIGN
   (<code title="">#</code>) character followed by a string which
   exactly matches the value of the <code title="attr-id">id</code>
   attribute of an element in the document with type <var
   title="">type</var>.</p>
 
-  <p>The <dfn>rules for parsing a hashed ID reference</dfn> to an
+  <p>The <dfn>rules for parsing a hashed reference</dfn> to an
   element of type <var title="">type</var> are as follows:</p>
 
   <ol>
@@ -18532,10 +18532,11 @@
    <dt>Content model:</dt>
    <dd><span>Flow content</span>.</dd>
    <dt>Element-specific attributes:</dt>
-   <dd>None, but the <code title="attr-id">id</code> global attribute has special requirements on this element.</dd>
+   <dd><code title="attr-map-name">name</code></dd>
    <dt>DOM interface:</dt>
    <dd>
 <pre class="idl">interface <dfn>HTMLMapElement</dfn> : <span>HTMLElement</span> {
+           attribute DOMString <span title="dom-map-name">name</span>;
   readonly attribute <span>HTMLCollection</span> <span title="dom-map-areas">areas</span>;
   readonly attribute <span>HTMLCollection</span> <span title="dom-map-images">images</span>;
 };</pre>
@@ -18546,8 +18547,12 @@
   <code>area</code> element descendants, defines an <span>image
   map</span>.</p>
 
-  <p>There must always be an <code title="attr-id">id</code> attribute
-  present on <code>map</code> elements.</p>
+  <p>The <dfn title="attr-map-name"><code>name</code></dfn> attribute
+  gives the map a name so that it can be referenced. The attribute
+  must be present and must have a non-empty value. Whitespace is
+  significant in this attribute's value. If the <code
+  title="attr-id">id</code> attribute is also specified, both
+  attributes must have the same value.</p>
 
   <p>The <dfn title="dom-map-areas"><code>areas</code></dfn> attribute
   must return an <code>HTMLCollection</code> rooted at the
@@ -18560,6 +18565,10 @@
   <code>img</code> and <code>object</code> elements that are
   associated with this <code>map</code> element according to the
   <span>image map</span> processing model.</p>
+
+  <p>The DOM attribute <dfn
+  title="dom-map-name"><code>name</code></dfn> must
+  <span>reflect</span> the content attribute of the same name.</p>
   
 
 
@@ -18797,7 +18806,7 @@
   title="attr-hyperlink-usemap"><code>usemap</code></dfn> attribute on
   the <code>img</code> or <code>object</code> element. The <code
   title="attr-area-usemap">usemap</code> attribute, if specified, must
-  be a <span>valid hashed ID reference</span> to a <code>map</code>
+  be a <span>valid hashed reference</span> to a <code>map</code>
   element.</p>
 
   <p>If an <code>img</code> element or an <code>object</code> element
@@ -18807,7 +18816,7 @@
 
   <ol>
 
-   <li><p>First, <span>rules for parsing a hashed ID reference</span>
+   <li><p>First, <span>rules for parsing a hashed reference</span>
    to a <code>map</code> element must be followed. This will return
    either an element (the <var title="">map</var>) or null.</p></li>
 




More information about the Commit-Watchers mailing list