This topic has been closed. No new entries allowed.
Reason: You can now post comments on articles on Dev Opera
You need to be logged in to post in the forums. If you do not have an account, please sign up first.
Replacing <noscript> with accessible, unobtrusive DOM/JavaScript
In this article, Frank Palinkas presents an accessible, unobtrusive replacement for <noscript>, built using HTML and DOM/JavaScript, which solves the problem of some older browsers not supporting <noscript> properly.( Read the article )
Frank
Another problem with using <noscript> is that some corporate networks and firewalls block some/all scripts. But because this is done behind the scenes, the web browsers think they are supporting Javascript (although they don't get to see very much of it), so correctly ignore then <noscript> element. But they don't run the script either, so the user gets nothing at all.
That's one of the reasons why "graceful degradation" is a bit of a misnomer - the only way to make really good, accessible websites with scripts and styles is through progressive enhancement.
That's one of the reasons why "graceful degradation" is a bit of a misnomer - the only way to make really good, accessible websites with scripts and styles is through progressive enhancement.
Great! But so mutch code!..
I usually do like in this example:
http://rusrestaurant.com/tests/js-css/2/
I will add some interactive example soon.
I usually do like in this example:
http://rusrestaurant.com/tests/js-css/2/
I will add some interactive example soon.
Main browser and mail: 9.27 • Secondary: 10.63 (still has annoying UI regressions: inability to detach tab normally, passes source file w/o extension to external editors)
extendopera.org • Report bugs to public BTS
extendopera.org • Report bugs to public BTS
renzaijh, you can take a look at my solution mentioned in my previous comment here. I think it's simple and bulletproof.
Main browser and mail: 9.27 • Secondary: 10.63 (still has annoying UI regressions: inability to detach tab normally, passes source file w/o extension to external editors)
extendopera.org • Report bugs to public BTS
extendopera.org • Report bugs to public BTS
Renzaijh, I found that if you wrap the noscript tags around the noscript div stated as the solution in this article, it does the trick of removing the "peekaboo" and degrades the same.
So it would look like:
<noscript><div id="noscript">your content</div><noscript>
Supporting browsers would render the noscript first hence hiding the content immediately.
Fatal, I really like your solution, it's very minimal and it seems to do the trick just as well if not better without the "peekaboo" affect Renzaijh was having.
So it would look like:
<noscript><div id="noscript">your content</div><noscript>
Supporting browsers would render the noscript first hence hiding the content immediately.
Fatal, I really like your solution, it's very minimal and it seems to do the trick just as well if not better without the "peekaboo" affect Renzaijh was having.
Though this idea maybe a solution, I wonder why Opera 11.01 does not support the NOSCRIPT tag any more. When I switch off Javascript completely (using F12, e.g.) I would expect that the text between NOSCRIPT and /NOSCRIPT would be displayed. This is not the case any more. Earlier versions were OK. I reported it in December 2010 as DSK-323573 but it was not changed, so the question is, is it a bug or a (questionable) feature.
I believe we did remove <noscript> completely, yes, because it's a pretty archaic feature that is better served by providing a default experience that is enhanced/changed by JavaScript if it is available, rather than the other way round. I've personally never seen the point in <noscript>, but I'd be more than happy to get your take on it.
best regards,
best regards,
Chris Mills
Developer Relations Manager
Editor, dev.opera.com and labs.opera.com
Developer Relations Manager
Editor, dev.opera.com and labs.opera.com
Originally posted by chrismills:
I've personally never seen the point in
Neither have I, but isn't is more about whether (a significant number of) sites use it?
Intelligent alien life does exist, otherwise they would've contacted us. — Calendar — Extend Opera
Originally posted by Frenzie:
Neither have I, but isn't is more about whether (a significant number of) sites use it?
I hardly know anyone who uses it these days. I've not seen it on a site for quite a long time. Is your experience different? I will do some more research on this to see if there is any published data on it. Our MAMA survey (http://dev.opera.com/articles/view/mama) doesn't seem to even cover <noscript>.
Chris Mills
Developer Relations Manager
Editor, dev.opera.com and labs.opera.com
Developer Relations Manager
Editor, dev.opera.com and labs.opera.com