noscript tags

Discussion about HTML and XHTML related issues.

noscript tags

Postby edintheclouds » Tue Nov 13, 2012 5: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?
edintheclouds
Rank 0 - Newcomer
Rank 0 - Newcomer
 
Posts: 2
Joined: Mon Nov 19, 2007 5:23 pm

Re: noscript tags

Postby Albert Wiersch » Tue Nov 13, 2012 9: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
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: noscript tags

Postby edintheclouds » Tue Nov 13, 2012 9:20 am

Many thanks
Albert
edintheclouds
Rank 0 - Newcomer
Rank 0 - Newcomer
 
Posts: 2
Joined: Mon Nov 19, 2007 5:23 pm


Return to HTML and XHTML

Who is online

Users browsing this forum: No registered users and 0 guests

cron