W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2001

Re: XHTML question

From: Richard A. O'Keefe <ok@atlas.otago.ac.nz>
Date: Fri, 17 Aug 2001 12:26:22 +1200 (NZST)
Message-Id: <200108170026.MAA72075@atlas.otago.ac.nz>
To: html-tidy@w3.org, mjcfcga@telus.net
Mike Connelly <mjcfcga@telus.net> wrote:
	<html xmlns="http://www.w3.org/1999/html" xml:lang="en" lang="en">
which is perfectly good ***X***HTML, but not legal HTML at all.

	When I run Tidy (inside HomeSite) against an HTML file containing the 
	above, I get the following.
	         Tidy (vers 30th April 2000) Parsing "input.html"
	         line 4 column 1 - Warning: <html> has XML attribute "xml:lang"
	         "input.html" appears to be XHTML 1.0 Transitional
	         1 warnings/errors were found!
	Would appreciate you please advising which is correct - the book
	or the Tidy output or if a change to Tidy is in order.
Both are.  The book is correct that that is legal XHTML.
Tidy is correct that it is not legal HTML, because HTML is not
an application of XML.
Received on Thursday, 16 August 2001 20:26:27 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:50 UTC