W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2006

[Bug 1500] XHTML-sent-as-text/html is parsed as XML

From: <bugzilla@wiggum.w3.org>
Date: Mon, 21 Aug 2006 11:45:53 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1GF8E5-0001RI-8w@wiggum.w3.org>


w3-2006@ryandesign.com changed:

           What    |Removed                     |Added
                 CC|                            |w3-2006@ryandesign.com

------- Comment #8 from w3-2006@ryandesign.com  2006-08-21 11:45 -------
Here is a bug I reported to a web site author, but they did not fix it because
they believed that their page was fine, and that the browser was broken,
because the page passed w3c validation:


Here is a test page that I built while investigating the problem:


You can switch the MIME type between HTML and XHTML. In HTML mode, when viewed
in Safari (2.0.4) or Firefox (, most of the page is red, which is not
what the author intended -- the author intended for the anchor tag at the top
to self-close. But in HTML mode the browsers do not support self-closing anchor
tags, because that is against section 3 of appendix C of the XHTML spec which
says an explicit empty element should instead be created. With the XHTML MIME
type, the browser renders the page as the author intended. However, the
validator says the document is correct with either MIME type, hence the
author's confusion.
Received on Monday, 21 August 2006 11:46:08 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:02:18 UTC