W3C home > Mailing lists > Public > www-validator@w3.org > February 2005

Re: noscript validation issue

From: David Dorward <david@dorward.me.uk>
Date: Sat, 5 Feb 2005 10:23:19 +0000
To: Paul Mackinlay <paul@webotech.co.uk>
Cc: www-validator@w3.org
Message-ID: <20050205102319.GA3180@us-lot.org>

On Sat, Feb 05, 2005 at 09:49:17AM +0000, Paul Mackinlay wrote:
> Having looked into this, a practival alternative to wrapping <noscript> 
> tags within <p> tags is using <div> instead of <p>.

Generally speaking, <noscript> is a poor solution to any problem,
especially when it means throwning away semantics in order to

The big problem with noscript is that is only allows for two possible
states - scripting supported or scripting not supported. It doesn't
allow for the possibility that scripting is supported by the script
makes use of scripting features not available in all browsers.

Generally the better solution is to write the document as if scripting
was not available, and then use scripting to alter the existing HTML.

In cases where you really want to use <noscript>, the better solution
is probably to write out the entire paragraph using JavaScript, and
then have another entire paragraph inside the <noscript> block.
> For those of you that make substantial use of CSS, you can create a CSS 
> class with the dot notation and use it in the class attribute on the 
> <div> tag.

Technically speaking it is an HTML class with a CSS "class selector",
but <div class="paragraph"> makes for a very poor substitute for <p>.

David Dorward                                      http://dorward.me.uk
Received on Saturday, 5 February 2005 10:23:22 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:44 UTC