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

Define serialization of a site #7250

Closed
apasel422 opened this issue Oct 20, 2021 · 4 comments · Fixed by #7251
Closed

Define serialization of a site #7250

apasel422 opened this issue Oct 20, 2021 · 4 comments · Fixed by #7251

Comments

@apasel422
Copy link
Contributor

https://html.spec.whatwg.org/multipage/origin.html#sites defines:

A site is an opaque origin or a scheme-and-host.

Would it be possible to export an algorithm for the serialization of a site?

@domenic
Copy link
Member

domenic commented Oct 20, 2021

Can you state the motivation for such a change?

@apasel422
Copy link
Contributor Author

We'd like to be able to serialize a site in WICG/attribution-reporting-api#257 as part of WICG/attribution-reporting-api#247.

@domenic
Copy link
Member

domenic commented Oct 20, 2021

OK. Can you summarize those issues for the HTML Standard community?

@apasel422
Copy link
Contributor Author

The draft specification for the Attribution Reporting API operates on sites, rather than origins, in some aspects, and needs to serialize sites as strings in JSON documents. The HTML standard, which defines "site", does not export an algorithm for serializing a site, a scheme-and-host, or a host, as far as I can tell.

domenic pushed a commit that referenced this issue Oct 21, 2021
dandclark pushed a commit to dandclark/html that referenced this issue Dec 4, 2021
mfreed7 pushed a commit to mfreed7/html that referenced this issue Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants