Re: html5 syntax - why not use xml syntax?

Robert Burns wrote:

> On Jul 7, 2007, at 6:26 AM, Ben Boyle wrote:

>> I have noticed the W3C HTML validator is confused by <link ... /> and
>> <meta ... /> empty tags, but had assumed it to be a valiator bug.
> 
> I would agree: validator bug.

No bug (this needs to be said very clearly).  The validator
compares the document [1] with the DTD specified in the DOCTYPE
directive, and finds bare character data.  It goes on to
explain :

	> Mistakes that can cause this error
	> include putting text directly in the
	> body of the document

and that is effectively what the author has done, since
the "/" closed the <link> tag and the following ">"
closed the <head> element.  Note that the diagnostic
is effectively identical to that produced by the very
example that the validator cites [2].

Philip Taylor
--------
[1] http://www.rhul.ac.uk/resources/Demo-documents/NET.html
[2] http://www.rhul.ac.uk/resources/Demo-documents/No-container.html

Received on Saturday, 7 July 2007 14:47:40 UTC