- From: Simon Pieters <simonp@opera.com>
- Date: Sat, 01 Sep 2007 16:46:25 +0200
- To: public-html <public-html@w3.org>
(This is part of my detailed review of the Semantics and structure of HTML
elements section.)
<map>:
Content model:
Zero or more block-level elements.
<area>:
Contexts in which this element may be used:
Where strictly inline-level content is allowed, but only as a
descendant of a map element.
What is the rationale for this content model?
HTML4 allows either block-level elements or <area>s, because in HTML4 you
could use <a> as areas for an image map, but this is no longer the case in
HTML5. So naturally the content model of <map> in HTML5 should be "Zero or
more area elements" and <area> be allowed "in a map element".
You can still duplicate the links in the image map with <a>s in
block-level elements, you'd just have to place them outside the <map>
element.
--
Simon Pieters
Opera Software
Received on Saturday, 1 September 2007 14:46:51 UTC