W3C home > Mailing lists > Public > public-xhtml2@w3.org > May 2009

Re: value for class attribute should be CDATA (not NMTOKENS)

From: Henri Sivonen <hsivonen@iki.fi>
Date: Tue, 26 May 2009 15:05:44 +0300
Message-Id: <2F7F39F0-5E7A-4140-92F6-AEAE1F634574@iki.fi>
To: public-xhtml2@w3.org
There are other undocumented changes in schemas/DTDs where one might  
reasonably expect no change.

Two things I noticed with a cursory inspection:
  1) The XHTML 1.0 DTDs allow the id attribute (but not class, it  
seems) on elements related to the <head> of the document when HTML  
4.01 does not. This means that XHTML 1.0 isn't strictly a  
reformulation of HTML 4.01 as XML. These changes aren't documented,  
either, in the section that claims to enumerate changes.
  2) The XSD version of XHTML 1.1 seems to lack the legend element.  
(Note that HTML 4.01 required a <fieldset> to have  a <legend>. As far  
as I can tell, XHTML 1.0 lists no explicit change to this--XML DTDs  
just cannot express this constraint. Not having the element at all in  
XSD looks like a bug.)

-- 
Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/
Received on Tuesday, 26 May 2009 12:06:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 23 February 2010 18:12:53 GMT