Re: elements other than HTML on web pages

John, I believe script tags are only "valid" if they are located within the
<head></head> or <body></body> tags.  Your browser may support putting the
script tags elsewhere, but it is technically not valid.  Try placing them in the
<head></head> and perhaps this will solve your problem.

-Peter





"John Sankey" <bf250@freenet.carleton.ca> on 10/03/2000 06:02:34 PM

To:   www-validator@w3.org
cc:    (bcc: Peter Foti)

Subject:  elements other than HTML on web pages



I'd like to suggest that an HTML parser such as you provide should only look
at what is between the <html> and </html> tags. HTML should not be
considered invalid if it is followed by a <script>...</script> - that should
be left for a script parser e.g. Javascript. More and more sites are tacking
on a segment of Javascript for various reasons (e.g. Geocities) - surely a
page with 100% valid HTML between the <html> and  </html> tags should pass.

Received on Tuesday, 3 October 2000 20:03:18 UTC