W3C home > Mailing lists > Public > www-validator@w3.org > June 2000

Test case for XML-mode of HTML validator.

From: Ian Graham <igraham@smaug.java.utoronto.ca>
Date: Mon, 19 Jun 2000 11:09:00 -0400 (EDT)
To: www-validator@w3.org
cc: gerald@w3.org
Message-ID: <Pine.SGI.4.05.10006191051100.104712-100000@smaug.java.utoronto.ca>
I''ve noticed the following behavior (i.e., a bug) in the
validator -- I also apologize if this has been discussed before,
but I could find no mention of this particular diagnosis in the
list archives.

The bug/behavior is as follows:
  * XHTML files seem to validate (mostly) when they have a 
    *.html filename extension and are served out as text/html.

  * Exactly the same XHTML files do not validate when they have a
    *.xml filename extension and are served out as text/xml.

I have a testcase that illustrate this -- two identical files, served
out as text/xml or text/html:


The second validates, and the first does not. This might make a good test
case for an 'XML-mode' validation (if such a thing exists in the validator

Ian Graham ......................... Centre for Academic Technology
i a n   d o t   g r a h a m    a t    u t o r o n t o   d o t   c a
Information Commons                               Tel: 416-978-4548
University of Toronto                             Fax: 416-978-7705
..................... http://www.utoronto.ca/ian/ .................
Received on Tuesday, 20 June 2000 13:22:20 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:17 UTC