Skip to content

Remove claim that the Link header is semantically equivalent to the HTML link element #32146

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

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

jfhr
Copy link
Contributor

@jfhr jfhr commented Feb 6, 2024

…TML <link> element

Description

The Link header is not equivalent to the <link> element. This PR would change "semantically equivalent" to "In many cases, it has the same effect as".

Motivation

While this statement was part of RFC 5988, it has been removed in the superseding RFC 8022.

This was discussed at the time:

[the link header field] is semantically equivalent to the element in HTML, as well as the atom:link feed-level element in Atom.

No, it's not; an application has to opt into using the link header field.

In particular, the rel values for the Link header are defined by the IANA Link Relations registry, and the rel values for the <link> element are defined by the HTML5 spec with extensions defined in the microformats wiki.

Additional details

For example, this works:

<link rel="stylesheet" href="index.css">

but this doesn't:

Link: <index.css>; rel="stylesheet"

(it works in Firefox, but it isn't standardized and webkit declined to implement it)

Related issues and pull requests

Relates to #24870

@jfhr jfhr requested a review from a team as a code owner February 6, 2024 22:07
@jfhr jfhr requested review from teoli2003 and removed request for a team February 6, 2024 22:07
@github-actions github-actions bot added Content:HTTP HTTP docs size/xs [PR only] 0-5 LoC changed labels Feb 6, 2024
Copy link
Contributor

github-actions bot commented Feb 6, 2024

Preview URLs

Copy link
Member

@estelle estelle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 🎉

@estelle estelle merged commit 12165c0 into mdn:main Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:HTTP HTTP docs size/xs [PR only] 0-5 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants