W3C home > Mailing lists > Public > public-html@w3.org > September 2007

Content model of <map> (detailed review of Semantics)

From: Simon Pieters <simonp@opera.com>
Date: Sat, 01 Sep 2007 16:46:25 +0200
To: public-html <public-html@w3.org>
Message-ID: <op.txzcnn0fidj3kv@hp-a0a83fcd39d2.palace.opera.no>

(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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:07 GMT