"href" not valid for "a" element

For technical support and bug reports for all editions of CSS HTML Validator, including htmlval for Linux and Mac.
Post Reply
wiggers
Rank 0 - Newcomer
Posts: 2
Joined: Mon Oct 30, 2017 8:28 am

"href" not valid for "a" element

Post by wiggers »

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

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

Post by Albert Wiersch »

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.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
Post Reply