W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > August 2010

[Bug 10068] Suggest making noscript obsolete but conforming

From: <bugzilla@jessica.w3.org>
Date: Tue, 24 Aug 2010 18:02:09 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1Onxp3-0003TW-FA@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=10068





--- Comment #63 from Gez Lemon <gez.lemon@gmail.com>  2010-08-24 18:02:07 ---
(In reply to comment #62)
> (In reply to comment #61)
> > > This is annoying when the JS functionality can be easily implemented in HTML or
> > > on the server, but if this is not viable (e.g. arcade games).  Then the only
> > > option you have is to tell the user they'll need JavaScript if they'd like to
> > > use the feature.
> > >
> > Certainly shouldn't use noscript for this. There should be an intro page that
> > describes the game, the rules, and what you need to have to play. 
> 
> Right, and on the game page, what if somebody goes straight to that?

It's simple enough to provide fallback content that is removed with JavaScript
without the need for a noscript element:

Markup:
<div id="nojs">
  <h2>JavaScript Required</h2>
  <p>Unfortunately, Javascript is required to use this application.
Alternatively, you can use the <a href="...">Flash version of XYZ</a> or <a
href="...">some other version</a> of the game we have lovingly prepared for
you.</p>
</div>

JavaScript:
var objRemove = document.getElementById('nojs');
objRemove.parentElement.removeChild(objRemove);

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 24 August 2010 18:02:10 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:01:21 UTC