W3C home > Mailing lists > Public > www-validator@w3.org > September 2005

Re: possible error in validator

From: olivier Thereaux <ot@w3.org>
Date: Mon, 12 Sep 2005 10:55:45 +0900
Message-Id: <E36EB66E-9A4C-4EC1-B204-FE1607564726@w3.org>
Cc: www-validator@w3.org
To: jesse@lostseed.com

Hello Jesse,

On 12 Sep 2005, at 01:25, jesse@lostseed.com wrote:
> When you have an xhtml 1.0 strict dtd document, and you
> self-close a script tag. ie: <script /> it will work in FF, but
> it will not render in the site in IE. This syntax is INCORRECT
> obviosuly but the validator does not say there is an error.

It's always better to use facts and references when claiming that  
something is "obviously incorrect"...

The <script /> construct  is valid according to the formal grammar of  
XHTML. It is, indeed, not respecting the (informative) third point of  
appendix C of the XHTML specification [1]. Appendix C is a collection  
of guidelines to make XHTML content "work" with user agents which  
understand HTML but not XHTML, such as... IE.

[1] http://www.w3.org/TR/xhtml1/#C_3

Since that appendix is informative, even if the validator went beyond  
its job and checked conformance issues beyond validity, this would  
not be an error, possibly just a warning.

Thanks,
-- 
olivier
Received on Monday, 12 September 2005 01:55:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:20 GMT