Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad value “bookmark” for attribute “rel” on element “link” #19

Closed
tomasbjerre opened this issue Dec 18, 2014 · 1 comment
Closed

Comments

@tomasbjerre
Copy link

I am validating a webpage containing:
<link rel="bookmark" title='Privatperson' href='/wps/portal/privatpers' hreflang="sv"/>

And I am getting:
Bad value “bookmark” for attribute “rel” on element “link”: The string “bookmark” is not a registered keyword.

But "bookmark" should be valid, according to:
http://www.w3.org/MarkUp/html3/dochead.html

https://validator.nu/?doc=http%3A%2F%2Fwww.forsakringskassan.se%2Farbetsgivare

@sideshowbarker
Copy link
Contributor

Hi @tomasbjerre,

Thanks for taking time to report this here.

I am validating a webpage containing:
<link rel="bookmark" title='Privatperson' href='/wps/portal/privatpers' hreflang="sv"/>
And I am getting:
Bad value “bookmark” for attribute “rel” on element “link”: The string “bookmark” is not a registered keyword.

That’s not a bug or an oversight. It's expected behavior, actually.
The reason is, in HTML5, "bookmark" isn't an allowed rel value.
Please see http://microformats.org/wiki/existing-rel-values (search for "bookmark" on that page).

But "bookmark" should be valid, according to:
http://www.w3.org/MarkUp/html3/dochead.html

That document shouldn't be relied on for anything. It's not a specification. I'm not sure what it is, really, and I don't know how you came across it, but it seems to be from before 1997 (17 years old…) and so the information in it became outdated a long time ago.

In HTML currently (HTML5), the "bookmark" value of rel is intentionally not allowed.

So I'm going to go ahead and close this issue, but feel free to still post any follow-up comments here if you have any other questions to ask. 👋

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants