W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2012

[whatwg] Allowing custom attributes on <html> or <body> in documents for media resources

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 31 Jan 2012 04:39:36 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1201310433080.18697@ps20323.dreamhostps.com>
On Tue, 31 Jan 2012, Robert O'Callahan wrote:
> On Tue, Jan 31, 2012 at 11:10 AM, Ian Hickson <ian at hixie.ch> wrote:
> > 
> > Is there any reason you can't just put whatever styles you want into a 
> > <style> element? It's not clear to me why you need to reference a 
> > global style sheet rather than referencing or generating a style sheet 
> > specifically for each case.
> 
> We could do that. It's a little less code to reference a common style 
> sheet, but OK.

My main concern with something like a class value or attribute is that 
it's much easier for authors to read, and thus depend on, which would 
constrain us in the future.

Your call, though. It's trivial to add to the spec an MAY statement 
allowing UAs to change the <html> or <body> class attribute, or whatnot.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 30 January 2012 20:39:36 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:10 UTC