W3C home > Mailing lists > Public > www-math@w3.org > April 2002

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

From: Michael Bowen <fizzbowen@mindspring.com>
Date: Sat, 06 Apr 2002 23:18:41 -0800
Message-Id: <5.1.0.14.0.20020406223756.02b3f540@pop.mindspring.com>
To: <www-math@w3.org>
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!

--MB
Received on Sunday, 7 April 2002 03:18:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 20 February 2010 06:12:51 GMT