W3C home > Mailing lists > Public > www-html@w3.org > February 2007

Re: [html] Elements within "title"?

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Tue, 27 Feb 2007 20:48:43 +1100
Message-ID: <45E3FE7B.5070902@lachy.id.au>
To: Jens Meiert <jens.meiert@erde3.com>
CC: www-html@w3.org, help-whatwg.org@lists.whatwg.org

Jens Meiert wrote:
> I once again [1] need to ask why the "title" element must not contain 
> other elements, although this might be quite desirable for certain 
> elements (like "abbr", for example)?

For compatibility reasons in HTML, title cannot contain elements because 
of the way it is parsed.  It would be possible to do so in XHTML, but 
then that would be another incompatibility between the 2 languages and 
there is also limited usefulness in doing so anyway, since many of the 
use cases for title are plain text.  e.g. the window's title bar, 
bookmarks, search results, etc.

-- 
Lachlan Hunt
http://lachy.id.au/
Received on Tuesday, 27 February 2007 09:49:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:08 GMT