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

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 UTC