Page 1 of 1

noscript tags

Posted: Tue Nov 13, 2012 4:40 am
by edintheclouds
If noscript tags are not allowed in html 5 should I just delete them with the text contained inside, or is there another method to show that JavaScript is turned off within the content?

Re: noscript tags

Posted: Tue Nov 13, 2012 8:06 am
by Albert Wiersch
Hello,

The "noscript" element is allowed in HTML5, but not in XHTML/XML documents.

If you need to use "noscript", then you should probably change your document type from one that is based on XML.

This talks a little more about it:
http://wiki.whatwg.org/wiki/HTML_vs._XHTML
In XHTML, the element is always parsed as a normal element, and can't really be used to stop content from being present when script is disabled.

Re: noscript tags

Posted: Tue Nov 13, 2012 8:20 am
by edintheclouds
Many thanks
Albert