-
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
Define the privacy-policy
link type.
#9860
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM,
Also expressing support here for a terms of service link that matches this behavior.
Would this be in addition to or instead of the |
I think both are valuable, and would like both to be a thing. Would you suggest defining both in HTML? I was assuming any |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few wording tweaks.
We need to decide whether this impacts
rel's supported tokens are the keywords defined in HTML link types which are allowed on a and area elements, impact the processing model, and are supported by the user agent. The possible supported tokens are noreferrer, noopener, and opener. rel's supported tokens must only include the tokens from this list that the user agent implements the processing model for.
It's somewhat vague what "implements the processing model" means; if the browser provides some sort of UI for showing the current page's privacy policy, is that a "processing model"? I'd lean toward no; we currently don't include next
/ prev
in this way, although in theory they could generate similar browser UI.
So I think no changes to supported tokens are needed. But I wanted to make sure others agreed first.
Accepted, thanks.
I agree with this reasoning. Given the lack of web-facing behavior, I don't think it makes sense to change the supported token set. |
This PR adds descriptions for the `privacy-policy` and `terms-of-service` link types, as defined in whatwg/html#9860 and whatwg/html#9877 respectively.
As some colleagues and I are still discussing this I removed WebKit as interested party for now. It's also not clear to me that @bvandersloot-mozilla is fully on board given his stated preferences in the linked issue. So overall I'd prefer we wait a bit until there's more clarity. |
I'm on board with this change. My concern is with the |
If it would be useful to provide any additional feedback into that discussion, I'd be happy to. |
Given that the privacy policy is supposed to be site-wide, why are both This is not the world's strongest objection b/c this link type doesn't seem super useful to browsers, but it's not apparent what benefits there are to having both mechanisms that outweigh the downsides. |
Should this cite RFC 6903, which (also) defines a (Mostly I'm just happy that we didn't choose an inconsistent value.) |
Oh, very interesting. HTML defines all the allowed values for It looks like we have at least one precedent case where such "informational" |
Thanks for the comments, @othermaciej, and apologies for my delayed response. I was unexpectedly out at the end of last week.
At a high level, I'd like the privacy policy that applies to an origin to be more easily discoverable than it is today, both by humans and mechanically. Hopefully that's a small goal we can share. :)
I think you're right that some origins will be misconfigured in exactly this way. I don't think that's unique to this proposal, however: it's entirely plausible that status-quo websites are pointing to different privacy policies on different pages, using the same text in both places (e.g. I'd suggest that these misconfigurations should be treated as a policy problem whose risk we can mitigate at that layer by defining expectations around this mechanism more clearly, creating tooling that points out these errors (e.g. Lighthouse, Web Inspector, etc), and relying on various actors in the ecosystem to help us create incentives for correct usage. With the above in mind, I'd suggest two things:
|
Hey folks, what are the next steps here? Can we merge it and #9877 (modulo any necessary cleanup), or are there objections to doing so? |
I think this is ready to merge, but only because I've been following the discussion closely and spotted #9860 (comment), which is a pretty clear statement of support from a second implementer. It'd be good if the OP was updated to check all the boxes, with citations. |
Done and done. Thanks for your input, @domenic! |
* Describe two new link types. This PR adds descriptions for the `privacy-policy` and `terms-of-service` link types, as defined in whatwg/html#9860 and whatwg/html#9877 respectively. * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * trying to fix CI failure * typo * fixup Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Estelle Weyl <[email protected]> * Update files/en-us/web/html/attributes/rel/index.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Estelle Weyl <[email protected]> Co-authored-by: Estelle Weyl <[email protected]>
Recently merged into the WHATWG HTML Standard: <whatwg/html#9860> Originally defined in section 4 of RFC 6903: <https://datatracker.ietf.org/doc/html/rfc6903#section-4>
This PR defines a
privacy-policy
link type that refers to a document whichcontains information about the data collection and usage practices that apply
to the current context.
This link type was defined in section 4 of RFC6903, and rediscovered in
a discussion at privacycg/proposals#39.
I'm submitting this as a PR, as there appears to be a reasonable amount of interest in the
privacy-policy
link type from the PrivacyCG discussion linked above. I haven't sent a similar PR forterms-of-service
as it's not actually clear to me whether jumping straight to HTML is justified. So, I figured I'd ask in the form of a PR. :)rel
's supported tokens.rel
link types. mdn/content#29801/index.html ( diff )
/links.html ( diff )
/references.html ( diff )