Hyperlinks which use objects

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

Hyperlinks which use objects

Postby ajtruckle » Mon Mar 01, 2010 1:57 pm

Hi

Warning message wrote:Warning in line 113 at character 15: The "a" tag contains no link text. Though it is not technically required, it is recommended that all "a" elements contain appropriate link text or an appropriate element, like "img".


I realise this is not a problem. I just wanted to discuss it. The home page has a few animations that act as buttons. So the buttons are the actual hyperlinks. But when you hover the mouse over such buttons they do not change the status bar text. So I wrapped the flash buttons in a tags. Example:

Code: Select all
      <a href="category.php?categoryid=1">
         <object id="lounge" class="flashAnim" data="flash/1_lounge_v3.swf" type="application/x-shockwave-flash">
            <param name="movie" value="flash/1_lounge_v3.swf" />
            <param name="quality" value="High" />
            <param name="play" value="false" />
            <param name="loop" value="false" />
            <param name="wmode" value="transparent" />
         </object></a>   

I don't want to start supressing warning messages because it is not clear to me if they are supressed within the context of a given site rather than across all projects.

Andrew
ajtruckle
Rank II - Novice
Rank II - Novice
 
Posts: 44
Joined: Sat Feb 27, 2010 2:24 pm

Re: Hyperlinks which use objects

Postby Albert Wiersch » Mon Mar 01, 2010 2:15 pm

Hi Andrew,

Messages are suppressed across all sites and projects. It is not site-specific suppression.

It does seem like this message should not be generated if the "a" element contains "object" (like it isn't if it contains "img"). Does this sound good? If no one sees any issues with this, then I will suppress this message if it contains an "object" element.
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2435
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: Hyperlinks which use objects

Postby ajtruckle » Mon Mar 01, 2010 2:32 pm

You have my vote. :)
ajtruckle
Rank II - Novice
Rank II - Novice
 
Posts: 44
Joined: Sat Feb 27, 2010 2:24 pm

Re: Hyperlinks which use objects

Postby Albert Wiersch » Mon Mar 01, 2010 2:47 pm

ajtruckle wrote:You have my vote. :)


OK! Sounds good. This change should be in the next v10 BETA.
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2435
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 2 guests