Re: xhtml 2.0 noscript

On Mon, Jul 24, 2006 at 04:52:06PM +0200, Steven Pemberton wrote:
> No. <script> works differently in HTML and XHTML, because document.write  
> doesn't work in XML.

This is a browser support issue, not something required by the XML or
XHTML specifications.
 
> <noscript> is needed in HTML for those cases where the <script> elements  
> haven't been able to do their document.write work, and you need  
> *something* in its place.

If <script> elements try to document.write and fail, then the browser
must support JavaScript (although not document.write) and have
scripting turned on ... so the <noscript> element should be ignored.

-- 
David Dorward                                      http://dorward.me.uk

Received on Saturday, 29 July 2006 08:47:10 UTC