Preventing NOSCRIPT comments

For technical support for all editions of CSS HTML Validator. Includes bug reports.
Post Reply
Rank 0 - Newcomer
Rank 0 - Newcomer
Posts: 1
Joined: Fri Jun 24, 2005 4:00 pm

Preventing NOSCRIPT comments

Post by RedBreva »

If I have a section of code:

<script type="text/javascript" src="menucode.js"></script>
<!-- If no javascript - provide text menu -->
<p class="textmenu">
<a href="../index.html">Home</a><a href="../sales/index.html">sales </a></p>

How do I persuade HTML checker to not give me messages such as the following:
Message in line xx at character y: (Accessibility->Web Content Accessibility Guidelines 1.0 (Priority 1)) All scripts should have a text equivalent. Consider using the "noscript" element to provide the text equivalent. The content of the "noscript" element will be rendered if scripts are turned off or not supported (the Lynx text-only browser does not support scripts). This message is displayed only once. [P1, 1.1]

when I quite plainly have included a NOSCRIPT alternative, but without disabling the message - so I do get prompted if I have omited the NOSCRIPT...

I am using 7.003 Pro
User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3494
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX

Post by Albert Wiersch »


I am sorry, but you can only disable that message completely. CSE doesn't know that your "noscript" is for that specific "script" so it displays an informational message regardless of whether there is a "noscript".
Post Reply