- From: <bugzilla@wiggum.w3.org>
- Date: Mon, 21 Aug 2006 11:45:53 +0000
- To: www-validator-cvs@w3.org
- CC:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=1500 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: http://pear.php.net/bugs/bug.php?id=7183 Here is a test page that I built while investigating the problem: http://www.ryandesign.com/tmp/selfclose.php You can switch the MIME type between HTML and XHTML. In HTML mode, when viewed in Safari (2.0.4) or Firefox (1.5.0.6), 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