[whatwg] [WA1] <ol type=a> is semantic

Lachlan Hunt lachlan.hunt at lachy.id.au
Wed Oct 12 19:02:43 PDT 2005


ROBO Design wrote:
> The suggestion with which James came up is really good, but the FOR 
> attribute should allow more than one IDs. Here's why: a quiz can have a 
> question which allows multiple answers.

It could possibly be defined as IDREFS instead of IDREF, but what's 
wrong with just using multiple ref elements?

e.g.
<p>The answers are <ref id="foo">a</ref> and <ref id="bar">b</ref>.</p>

That would also be much more flexible for user agents to do something 
with.  For example, activating each ref element could highlight the 
associated element in some way, or it could be activated like a link to 
#foo and then be styled using the :target pseudo-class.  With multiple 
IDs, such behaviour may not be so easy.

-- 
Lachlan Hunt
http://lachy.id.au/




More information about the whatwg mailing list