Skip to content

Info: Potentially bad value sitemap for attribute rel on element link #2081

@edent

Description

@edent

Summary

When using <link rel=sitemap …> the checker raises a warning.

URL for document that reproduces the problem

https://shkspr.mobi/blog/

HTML/CSS/SVG snippet that reproduces the problem

<link rel=sitemap href=https://example.com/sitemap.xml type=application/xml>

Checker error messages

Info: Potentially bad value sitemap for attribute rel on element link Typo for timemap?

Spec links/citations

https://html.spec.whatwg.org/multipage/links.html#other-link-types

That says:

Extensions to the predefined set of link types may be registered on the microformats page for existing rel values. [MFREL]

There is a rel="sitemap" registered on that site - https://microformats.org/wiki/rel-sitemap

While I don't have hard statistics, it is used in some popular CMS software, and appears to be widely used in open source projects:

Steps to reproduce

  1. Check a page with the rel="sitemap" attribute.
  2. See error.

Expected behavior

Checker should be aware of the popular rels registered on microformats.

Actual behavior

An error occurs.

Screenshots or screen recordings

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions