Page 1 of 1

"href" not valid for "a" element

Posted: Mon Oct 30, 2017 8:36 am
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>

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

Posted: Mon Oct 30, 2017 4:30 pm
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.