techie : blog : programming : html

Menu

Diary
OldIRC
URLs
misc
techie
writing

More content will be added to fill this space at some point in the future.

home :: techie :: blog :: programming :: html

Opera 9.51 shows noscript tags

It seems that it's possible to get opera to show the content of a <noscript> tag, even without the user disabling javascript.

It took me a long time to work out why there was the content of <noscript> tags popping up on our site for opera users. They were showing the raw html of the text inside the tag, but it was showing up.

See the example of opera displaying noscript tags

It turned out that someone had added CSS to style noscript elements, and set them to display: block. From this, it seems that Opera (9.51) treats noscript elements as if they were a <pre> tag, styled with display: none.

This seems quite sensible, and it was a bit silly for us to style the noscript element as displayed. However, the HTML spec says that the browser shouldn't display the noscript except in 2 specific cases - scripting being turned off or it not having run a previous script on the page. As neither of these have happend, it should not display the text, putting Opera in the wrong.

Last updated: 14:39, 20 Jul 2008 [ /techie/blog/programming/html ] Link..