MAP is inline (was:Re: Stupid)

Charles wrote:

"On the other hand, I can't see where in the 
spec it says that MAP is an inline. In the discussion 
(7.5.3 Block-level and Inline elements, 
http://www.w3.org/TR/REC-HTML40/struct/global.html#h-7.5.3) 
it says that Inline elements generally cannot contain block elements.." 


From the HTML4.0  strict.dtd:

<!ENTITY % special
   "A | IMG | OBJECT | BR | SCRIPT | MAP | Q | SUB | SUP | SPAN | BDO">

<!ENTITY % inline "#PCDATA | %fontstyle; | %phrase; | %special; | %formctrl;">

<!ELEMENT MAP - - ((%block;)+ | AREA+) -- client-side image map -->

You shoudn't read the verbal part of the spec. It's full of lies.
(although I must admit that Netscape's "tag reference" is 
much worse).

Regards,

Nir Dagan, Ph.D.
http://www.nirdagan.com
mailto:nir@nirdagan.com

"There is nothing quite so practical as a good theory." 
-- A. Einstein

Received on Tuesday, 17 November 1998 11:21:50 UTC