[whatwg] abbr inside of option
Jens O. Meiert
jens at meiert.com
Thu Apr 28 15:32:46 PDT 2011
> > Just curious: What is the reasoning behind the option element not being
> > able to contain abbr elements?
>
> What problem would this solve?
I think this question came up a few times, also in the context of the
“title” element; to try a very quick abstraction, it seems logical
that the content model of every non-void HTML element (with the only
exception of form elements?) should allow (most) phrasing content.
Having asked the question too for “title” at some point the reasoning
is that you could not express the meaning of these elements’ contents
otherwise. Or, why should “<h1><abbr>HTML</abbr></h1>” be acceptable
but “<title><abbr>HTML</abbr></title>” not be permitted—in both cases,
“HTML” is an abbreviation. (No need to explain the situation around
the “title” element again, I just like the example.)
--
Jens O. Meiert
http://meiert.com/en/
More information about the whatwg
mailing list