W3C home > Mailing lists > Public > www-html@w3.org > July 2006

Re: xhtml 2.0 noscript

From: David Dorward <david@dorward.me.uk>
Date: Sat, 29 Jul 2006 09:47:04 +0100
To: www-html@w3.org
Message-ID: <20060729084704.GA9457@us-lot.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:07 GMT