noscript tags

Discussion about HTML and XHTML related issues.
Post Reply
edintheclouds
Rank 0 - Newcomer
Rank 0 - Newcomer
Posts: 8
Joined: Mon Nov 19, 2007 4:23 pm

noscript tags

Post by edintheclouds » Tue Nov 13, 2012 4:40 am

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
Site Admin
Posts: 3426
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: noscript tags

Post by Albert Wiersch » Tue Nov 13, 2012 8:06 am

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.
Image
Albert Wiersch

edintheclouds
Rank 0 - Newcomer
Rank 0 - Newcomer
Posts: 8
Joined: Mon Nov 19, 2007 4:23 pm

Re: noscript tags

Post by edintheclouds » Tue Nov 13, 2012 8:20 am

Many thanks
Albert

Post Reply