The XHTML 1.0 strict DTD defines id as an attribute on the html node
(I haven't looked at transitional or 1.1 strict)

<!ELEMENT html (head, body)>
<!ATTLIST html
  %i18n;
  id          ID             #IMPLIED
  xmlns       %URI;          #FIXED 'http://www.w3.org/1999/xhtml'
  >



On May 5, 1:15 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> 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

Reply via email to