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

Ian Hickson ian at hixie.ch
Mon Jan 30 20:39:36 PST 2012


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.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list