I wanted to display a message on the top of my site when the javascript is disabled (just like on SO), but on google chrome is not working
Looks that way.
You can use javascript to hide a 'noscript' message.
Odd. I can repro this in Chrome 4.1.249.1064 (45376)
I had trouble finding it, so here's how:
you can disable JavaScript on Chrome in Options > Under the Hood > Privacy > Content > Javascript >
I have the current version: Version 30.0.1599.69 m and can confirm the same or a similar issue. With javascript disabled, html within the <noscript> tag displays verbatim, not rendered as html html is supposed to format.
Note, this happens one time and one time only: the first time after javascript is disabled. Thereafter, all is well. Refresh the screen and <noscript> works as expected. As such, someone browsing with javascript routinely disabled would not generally experience the quirk.
Hmmm... I've opened Google Chrome with Javascript issuing:
c:\Documents and Settings\grzole\Local Settings\Application Data\Google\Chrome\Application>chrome -disable-javascript
And when visiting some <noscript>
example found on Internet I can see the message:
http://www.java2s.com/Code/HTMLCSS/Object-Tags/noscriptExample.htm
http://www.java2s.com/Code/HTMLCSSDemo/noscriptExample.htm
So it looks like it's working. I have Google Chrome 2.0.172.39.
I can confirm this bug with current Chrome (4.1.249.1064). It seems not to be a Webkit issue because other webkit-based Browsers support the tag.
Although hiding the text with Javascript may be possible, it is not really an option; the noscript tag is part oof the w3c standard an so it should be supported by a browser that claims to be standards compliant.
© 2022 - 2024 — McMap. All rights reserved.