Preventing NOSCRIPT comments

For technical support for all editions of CSE HTML Validator. Includes bug reports.

Preventing NOSCRIPT comments

Postby 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
RedBreva
Rank 0 - Newcomer
Rank 0 - Newcomer
 
Posts: 1
Joined: Fri Jun 24, 2005 4:00 pm

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


Return to CSE Tech Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron