Re: <script> and <noscript> in xhtml

* François Battail wrote:
>> The validator does not complain about the noscript element, but you must
>> not use character data in noscript element, the validator wants you to
>> write something like
>> 
>>   <noscript><p>...</p><noscript>
>
>Yes it works with <p> but don't works with inline elements like <span> 

Yes, you can only use block level elements as child of noscript in HTML
4 Strict and derived document types. 

>which is little bit annoying in my case since if i cannot use javascript 
>to do some calculus i want to write that the information is not accurate 
>like this :
>
>if javascript is on :
>
>result: 150000000
>
>if javascript is off :
>
>result: 145000000 (as of july 28, 2002, 12am GMT)

You do not need to use noscript, just use the latter and replace it
using JavaScript.

Received on Monday, 29 July 2002 23:31:11 UTC