W3C home > Mailing lists > Public > public-html@w3.org > May 2008

Re: Editorial: Please indicate presence rules for type='' and media='' on <source> under "Element-specific attributes"

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 9 May 2008 07:14:39 +0000 (UTC)
To: Henri Sivonen <hsivonen@iki.fi>
Cc: HTMLWG WG <public-html@w3.org>
Message-ID: <Pine.LNX.4.62.0805090713580.23610@hixie.dreamhostps.com>

On Thu, 11 Oct 2007, Henri Sivonen wrote:
> 
> http://www.w3.org/html/wg/html5/#source
> 
> Currently, when type='' and media='' for <source> are listed under 
> "Element-specific attributes", they are presented the way syntactically 
> optional attributes are presented. The prose clarifies that they are, in 
> fact, not always optional. For clarity and consistency with how other 
> attributes with special presence rules are listed (e.g. ismap on <img>), 
> I suggest something along these lines:
> 
> type (required if media not given and there are further source element
> siblings)
> media (required if type not given and there are further source element
> siblings)

I removed the annotations altogether, since there were more special cases 
than simple cases.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 9 May 2008 07:15:19 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:44:30 UTC