Skip to content

Commit

Permalink
more notes for image maps ismap/usemap processing
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@255 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Nov 2, 2006
1 parent 16ebb54 commit 1db3d00
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 7 deletions.
23 changes: 18 additions & 5 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -7549,6 +7549,10 @@ To move the error from the markup to the rhyming.&lt;/p&gt;</pre>
be used to indicate to the user the likely nature of the target resource
before the user follows the link.

<p class=big-issue>default action of clicking a link is to check if target
was an image with ismap; if so, do server side image map processing,
otherwise, fire DOMActivate on the link.

<p>The <code><a href="#a0">a</a></code> element must not be <a
href="#significant" title="significant inline content">empty</a>.

Expand Down Expand Up @@ -9790,9 +9794,9 @@ Address: &lt;input name="address"&gt;&lt;/p&gt;</pre>

<dd><code title=attr-area-alt><a href="#alt2">alt</a></code> (required)

<dd><code title=attr-area-coords>coords</code>
<dd><code title=attr-area-coords><a href="#coords0">coords</a></code>

<dd><code title=attr-area-shape>shape</code>
<dd><code title=attr-area-shape><a href="#shape0">shape</a></code>

<dd><code title=attr-hyperlink-href><a href="#href5">href</a></code>

Expand Down Expand Up @@ -9828,8 +9832,9 @@ Address: &lt;input name="address"&gt;&lt;/p&gt;</pre>
with corresponding to an area on an <a href="#image0">image map</a>. The
<dfn id=alt2 title=attr-area-alt><code>alt</code></dfn> attribute, which
must be present, specifies the text, and the <code
title=attr-area-coords>coords</code> and <code
title=attr-area-shape>shape</code> attributes specify the area.
title=attr-area-coords><a href="#coords0">coords</a></code> and <code
title=attr-area-shape><a href="#shape0">shape</a></code> attributes
specify the area.

<p>If the <code><a href="#area0">area</a></code> element has an <code
title=attr-hyperlink-href><a href="#href5">href</a></code> attribute, then
Expand Down Expand Up @@ -13946,9 +13951,17 @@ disallow: http://microformats.org/wiki/rel-enclosure
<h4 id=image><span class=secno>4.4.4. </span>Image maps</h4>

<p class=big-issue>...<dfn id=image0>image map</dfn>, <dfn id=valid4>valid
area</dfn></p>
area</dfn>, <dfn id=coords0
title=attr-area-coords><code>coords</code></dfn>, <dfn id=shape0
title=attr-area-shape><code>shape</code></dfn></p>
<!-- http://lxr.mozilla.org/seamonkey/source/layout/generic/nsImageMap.cpp: parsing of coords, ordering of coord numbers when out of order -->

<p class=big-issue>default action of clicking an image is to check if
target was an image with usemap; if so, fire DOMActivate on the matching
<code><a href="#area0">area</a></code>, otherwise do nothing. (Or, do
click events clicked on areas fire directly on the area and not on the
img?)

<h3 id=commands><span class=secno>4.5. </span>Commands</h3>

<p>A <dfn id=command2 title=concept-command>command</dfn> is the
Expand Down
15 changes: 13 additions & 2 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -6376,6 +6376,10 @@ To move the error from the markup to the rhyming.&lt;/p&gt;</pre>
indicate to the user the likely nature of the target resource before
the user follows the link.</p>

<p class="big-issue">default action of clicking a link is to check
if target was an image with ismap; if so, do server side image map
processing, otherwise, fire DOMActivate on the link.</p>

<p>The <code>a</code> element must not be <span title="significant
inline content">empty</span>.</p>

Expand Down Expand Up @@ -12413,11 +12417,18 @@ disallow: http://microformats.org/wiki/rel-enclosure

<h4>Image maps</h4>

<p class="big-issue">...<dfn>image map</dfn>, <dfn>valid
area</dfn></p>
<p class="big-issue">...<dfn>image map</dfn>, <dfn>valid area</dfn>,
<dfn title="attr-area-coords"><code>coords</code></dfn>, <dfn
title="attr-area-shape"><code>shape</code></dfn></p>

<!-- http://lxr.mozilla.org/seamonkey/source/layout/generic/nsImageMap.cpp: parsing of coords, ordering of coord numbers when out of order -->

<p class="big-issue">default action of clicking an image is to check
if target was an image with usemap; if so, fire DOMActivate on the
matching <code>area</code>, otherwise do nothing. (Or, do click
events clicked on areas fire directly on the area and not on the
img?)</p>



<h3 id="commands">Commands</h3>
Expand Down

0 comments on commit 1db3d00

Please sign in to comment.