W3C home > Mailing lists > Public > www-validator@w3.org > August 2009

Re: Text not allowed in element script in this context.

From: Etienne Miret <elimerl@gmail.com>
Date: Wed, 12 Aug 2009 14:38:35 +0200
To: Scott Busche <swbusche@gmail.com>
Cc: www-validator@w3.org
Message-Id: <1250080715.1200.10.camel@stag-846-09>
It seems you're right and that indeed script content is allowed in
script even in the presence of an src attribute, however the HTML 4.01
specification reads:
> If the src has a URI value, user agents must ignore the element's
> contents and retrieve the script via the URI. 

Which means that even if it is allowed, having content into a script
element with a src attribute is totally pointless and you shouldn't do

Le mardi 11 août 2009 à 09:10 -0500, Scott Busche a écrit :
> >From the documentation.
> [...]
Wich documentation are you refering to? it seems plain wrong.


Etienne Miret
Received on Wednesday, 12 August 2009 12:39:20 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:59:14 UTC