Re: xhtml Validator bug?

* GVE wrote:
>When validating an xhtml-strict page the validator does not report as an
>error the presence of a tag like this:
>
><script type="text/javascript" src="script.js" />
>
>It should be:
>
><script type="text/javascript" src="script.js"></script>

There is no specification that says so, the HTML Working Group only
shared their observation that using the latter works better in HTML user
agents for which it follows that if that is a concern, you are better
off using the latter. While such observations are indeed of some use,
there is nothing wrong with not reporting such observations, so this is
not a bug.

>as script is not defined as an empty element; so the first tag should be
>wrong.

www-html-editor@w3.org would be the right list for suggestions on what
should be allowed or not in HTML, XHTML, etc. you will find a reference
to this list in most of the HTML, XHTML, etc. specifications. the W3C
Markup Validator only cares about what they actually write into the
specs.

Received on Thursday, 21 October 2004 00:47:23 UTC