> > That's another mystery to me. Could you unpack a few details?
> 
> As a supplementary question to this, I agree that the
> spec. for XHTML permits this (whilst the spec. for
> HTML does not) but in what circumstance(s) do you
> believe it to be useful ?  I ask because there can
> (and must) be exactly one instance of an HTML element,
> so why would a CSS declaration for the HTML element
> not be as useful as a CSS declaration for its ID ?

As Philippe suggested, it is mostly script related.
For example, one could use JS to plug an id on <html> so elements can be
styled depending on that hook.

#WeKnowJSisAvailable .widgetPanel {display:none;}

This is much better than using a class or ID on body as it will prevent a
reflow.

Note that because this is generated markup there is not really a validation
issue, but still, I think it's better to do stuff the DTD allows.


--
Regards,
Thierry 
www.tjkdesign.com | articles and tutorials
www.ez-css.org | ultra light CSS framework




______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to