noscript tags

For general web development questions that are not specifically related to CSS HTML Validator. This includes (but is not limited to) general HTML, CSS, Accessibility, JavaScript, and SEO questions.
Post Reply
edintheclouds
Rank 0 - Newcomer
Posts: 8
Joined: Mon Nov 19, 2007 4:23 pm

noscript tags

Post 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?
User avatar
Albert Wiersch
Site Admin
Posts: 3785
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: noscript tags

Post 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.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
edintheclouds
Rank 0 - Newcomer
Posts: 8
Joined: Mon Nov 19, 2007 4:23 pm

Re: noscript tags

Post by edintheclouds »

Many thanks
Albert
Post Reply