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. 
<http://www.w3.org/TR/html401/interact/scripts.html#edef-SCRIPT>

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
it.

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.

Regards,

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

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