-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Add link rel="canonical" #2351
Comments
Maybe @tantek has thoughts on this? |
We have a stub of a spec: http://microformats.org/wiki/rel-canonical which technically anyone can login and edit (all contributions to microformats wiki are covered by CC0 + OWFa, similar to how contributions to Wikipedia are covered by their contribution license). Update: IIRC @kevinmarks (who worked at Google when rel=canonical was first becoming a thing) has often had a lot to say about rel=canonical, when to use it instead of new rel values etc. Kevin, want to take a crack at expanding http://microformats.org/wiki/rel-canonical with your thoughts on meaning, usage, when authors should use it, what should browsers, search engines, and other consuming applications do with it? |
Also re: "something so useful and widespread should be in the list of link rels in the spec" what I remember is that we gave up trying to maintain an explicit in-spec list beyond what went into HTML5 because it became far more "formal" work than necessary. Hence the easy to edit registry instead. If there's a good reason to reconsider growing an explicit list in the HTML spec, I'm not against it, I'd just be curious about what reasoning has changed since we gave up doing that. |
I've updated http://microformats.org/wiki/rel-canonical with a more thorough description and discussion - further edits welcomed. |
I added a use counter to the W3C HTML checker to collect data on usage of As the table shows,
|
This change adds “canonical” to the HTML spec as a standard keyword allowed in the value of the `rel` attribute for the `link` element. Fixes #2351
This change adds “canonical” to the HTML spec as a standard keyword allowed in the value of the `rel` attribute for the `link` element. Fixes #2351
This change adds “canonical” to the HTML spec as a standard keyword allowed in the value of the `rel` attribute for the `link` element. Fixes #2351
This change adds “canonical” to the HTML spec as a standard keyword allowed in the value of the rel="" attribute for the <link> element. Fixes #2351.
This change adds “canonical” to the HTML spec as a standard keyword allowed in the value of the rel="" attribute for the <link> element. Fixes whatwg#2351.
This change adds “canonical” to the HTML spec as a standard keyword allowed in the value of the rel="" attribute for the <link> element. Fixes whatwg#2351.
This change adds “canonical” to the HTML spec as a standard keyword allowed in the value of the rel="" attribute for the <link> element. Fixes whatwg#2351.
I was planning to use this today, went to the spec to look up the syntax and any usage notes, and found out that it's not there. It seems like something so useful and widespread should be in the list of link rels in the spec. For example we could say that it's only useful on link, not a/area.
It's already in http://microformats.org/wiki/existing-rel-values#HTML5_link_type_extensions which states it can be used on a/area, hmm. Maybe we should just leave it there? But why is canonical in the wiki and author in the spec?
See also https://en.wikipedia.org/wiki/Canonical_link_element
/cc @sideshowbarker
The text was updated successfully, but these errors were encountered: