From: Fred L. D. Jr. <fd...@ac...> - 2002-03-27 04:20:25
|
Barry A. Warsaw writes: > +1 on this change, but out of curiosity, does XHTML really care about > tag case? Yes. XHTML is specifically defined to be legal XML, and is case sensitive. The chosen direction was to use lower case rather than upper. There are two ways to provide XHTML: as text/xml, at which point it can be validated as XML, or as text/html, as which it cannot be valid HTML, but more browsers will be able to deal with it in practice. It cannot be valid HTML because it uses the XML-style empty tags (with a required space between the tag name or attributes and the "/>", as a browser compatibility hack). "<hr />" is perfectly legal XML, but will never be valid HTML since the '/' character is illegal at that position. -Fred -- Fred L. Drake, Jr. <fdrake at acm.org> PythonLabs at Zope Corporation |