staticSearch icon indicating copy to clipboard operation
staticSearch copied to clipboard

Validity of our logo

Open martindholmes opened this issue 9 months ago • 2 comments

The VNU validator currently flags our SVG logo as being invalid because of the presence of @aria-label attributes on <g> elements. This is valid according to the SVG 2.0 draft:

https://svgwg.org/svg2-draft/struct.html#GElement

but our SVG claims to be 1.1, which doesn't appear to allow @aria* attributes, at least explicitly:

https://www.w3.org/TR/SVG11/struct.html#GElement

Solutions: either:

  1. Drop the @aria-label attribute from the logo, or
  2. Switch the version to 2.0, and confirm that it still works well in all browsers, and that the validator no longer complains. (This is using the latest GitHub release of the validator as of today.)

martindholmes avatar Mar 19 '25 17:03 martindholmes

Confirmed that although switching to 2.0 does not have any effect on the display of the SVG (in FF and Chromium), the validator still flags the same error. I've raised a bug on the Validator repo:

https://github.com/validator/validator/issues/1805

martindholmes avatar Mar 19 '25 17:03 martindholmes

That bug has given rise to a bug report on SVG. I'm going to punt this to 2.1 since it's basically beyond our control.

martindholmes avatar Nov 14 '25 20:11 martindholmes