<map> element requires block-level enclosure in XHTML 1.1?

When attempting to validate (with the W3C HTML validator) a document 
containing image maps under the "XHTML 1.1 plus MathML" DTD, I draw the 
following error message unless I enclose the <map> elements within a 
matching set of <p>...</p> elements:

===== <error-message> =====

Error: document type does not allow element "map" here; missing one of 
"ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "pre", 
"address", "fieldset" start-tag

===== </error-message> =====

I think these are all block-level elements. Must the <map> element be 
enclosed by one of these elements in XHTML 1.1? I could not find a 
statement of such a requirement in the XHTML 1.1 spec, although I have a 
well-earned reputation for sometimes missing the obvious. I even checked 
the DTD contents, but I haven't learned enough to really understand these yet.

I know that this is not strictly a MathML question, but I am asking because 
I would like to validate my MathML against a "standard" (widely accepted) 
DTD, and the one referenced in the first paragraph of this message seems to 
be the best candidate. This has necessitated my upgrading my code from 
XHTML 1.0 Transitional (or earlier) to XHTML 1.1. This particular issue 
(among many others) arose during the upgrade process, and is one of the 
very few for which I was unable to find an enlightening discussion in the 
specs. Also, I suspect that this is not a validator bug, so I was reluctant 
to post this inquiry to the www-validator forum.

I would appreciate your insights. Thank you!


Received on Sunday, 7 April 2002 03:18:20 UTC