"href" not valid for "a" element

For technical support for all editions of CSS HTML Validator. Includes bug reports.
Post Reply
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 »

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>

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

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

Post by Albert Wiersch »


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

Post Reply