W3C home > Mailing lists > Public > www-html@w3.org > November 2003

Re: <link> vs. <script> for external scripts

From: Toby A Inkster <tobyink@goddamn.co.uk>
Date: Fri, 21 Nov 2003 11:48:04 +0000
To: Ernest Cline <ernestcline@mindspring.com>
Cc: W3C HTML List <www-html@w3.org>
Message-ID: <20031121114804.GB24730@ophelia.goddamn.co.uk>
On Thu, Nov 20, 2003 at 10:00:56AM -0500, Ernest Cline wrote:
| Toby A Inkster <tobyink@goddamn.co.uk> wrote:
| 
| > I'm not even entirely sure that we need <noscript/>. What about:
| >
| > <body onload="document.getElementById('noscript').style.display='none';">
| > 	<h1>Example</h1>
| > 	<p id="noscript">This paragraph acts more or less the same as a
| > 	<code>&lt;noscript/&gt;</code> element.</p>
| > </body>
| 
| And what if a user has scripting enabled, but styles disabled?
| Then the "noscript" elements would still be displayed which is not
| what is desired..

I did indeed think about this shortly after posting the message. I
don't have a great deal of DOM knowledge (getElementById and changing
the style properties is about as complex as it gets for me) although
I'm pretty sure there is a way to completely delete a node from the
DOM.

-- 
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132

Received on Friday, 21 November 2003 06:48:11 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 23:40:10 UTC