"href" not valid for "a" element

For technical support for all editions of CSS HTML Validator. Includes bug reports.
Post Reply
wiggers
Rank 0 - Newcomer
Rank 0 - Newcomer
Posts: 1
Joined: Mon Oct 30, 2017 8:28 am

"href" not valid for "a" element

Post by wiggers » Mon Oct 30, 2017 8:36 am

I'm getting the following error:

The "href" attribute is not valid for the "a" element. Some valid attributes for this element are: "alignment-baseline", "baseline-shift", "class", "clip", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cursor", "direction", "display", etc.

The code is basically this:

Code: Select all

    	   <svg class="xyz">
    	       <a href=""></a>
    	   </svg>

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3236
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: "href" not valid for "a" element

Post by Albert Wiersch » Mon Oct 30, 2017 4:30 pm

Hello,

I'm sorry about that. Looks like "href" is new (and "xlink:href" has been deprecated):
https://developer.mozilla.org/en-US/doc ... /Element/a

Please update to this config file and let me know if it fixes the problem:
https://www.htmlvalidator.com/downloads ... 170cfg.zip

Please see the "readme" file in the above ZIP file for installation instructions.
Image
Albert Wiersch

Post Reply