Preventing NOSCRIPT comments

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

Preventing NOSCRIPT comments

Post by RedBreva » Fri Jun 24, 2005 4:07 pm

If I have a section of code:

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

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

Post by Albert Wiersch » Fri Jun 24, 2005 5:32 pm

Hello,

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

Post Reply