W3C home > Mailing lists > Public > www-validator@w3.org > October 2000

Re: elements other than HTML on web pages

From: <pdf@bizfon.com>
Date: Tue, 3 Oct 2000 20:02:26 -0400
To: www-validator@w3.org
Message-ID: <8525696E.0000398E.00@Enterprise>


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 GMT

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