W3C home > Mailing lists > Public > www-html@w3.org > November 2003

Re: XHTML 2.0 User Agent Conformance

From: Lachlan Hunt <lhunt07@postoffice.csu.edu.au>
Date: Sat, 01 Nov 2003 22:34:57 +1100
Message-ID: <3FA39A61.2000609@postoffice.csu.edu.au>
To: David Woolley <david@djwhome.demon.co.uk>
Cc: www-html@w3.org

David Woolley wrote:

>> What happens with an errata which fixes an error in the original 
>> XHTML 2.0
>> specification, UA's pre-Errata would handle a document different from 
>> UA's
> The errata would have to be against XML itself, as browsers are not
> required to read the DTD or validate against it, and there is a strong
> lobby that says that browsers should not even have internal knowledge
> of the DTD.

  Why shouldn't UAs have knowledge of the XHTML DTD?  If a DOCTYPE is 
specified, then isn't it a requirement of XML that the document 
validates against it (With a Validating Processor[1])?  For any other 
XML document with a DOCTYPE, UAs (incl. Netscape and IE) stop and 
display error messages for invalid documents; Why should this be any 
different for XHTML?

  If a UA has no knowledge of the DTD, then an author could write 
something like:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
     <title>Invalid Document</title>
    <p>This is some annoying <blink>blinking</blink> text!</p>
    <!-- Invalid Blink Element -->

  And because of current UAs tendencies to just blindly process HTML, 
this document, even with the invalid <blink> element, will be rendered 
without error.  Isn't this exactly the kind of poor use of (X)HTML W3 is 
trying to stop by developing standards?

  IMO, this poor use of XHTML would be gradually stopped if UAs like 
Netscape, IE, etc. started to become Validating Processors (especially 
for XHTML2).
  It's also interesting to note that Netscape runs in "Standards 
Compliance Mode" for the above sample document, depite the invalid 
<blink> element.

[1] http://www.w3.org/TR/REC-xml#sec-conformance

Received on Saturday, 1 November 2003 06:42:32 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:06 UTC