Su wrote:
On 5/3/07, Glen Lipka <[EMAIL PROTECTED]> wrote:Can jQuery access the <HTML> node and add a class to it? Is this invalid XHTML?Class is invalid on the HTML element, but you /can/ assign an ID. Given that there should never be more than one HTML element in a doc, this is less a restriction than just proper behavior, if you really think about it.
Unfortunately it seems that id is invalid as well: http://www.w3.org/TR/html401/struct/global.html#h-7.3 -- Klaus