Bugzilla – Bug 243
Make <map name=''> the preferred way of doing things.
Last modified: 2008-06-06 15:19:45 CEST
Index: source =================================================================== --- source (revision 1721) +++ source (revision 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>