Skip to content

What is the relationship between type values and a Web request's destination concept? #7

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

Open
littledan opened this issue Nov 7, 2019 · 6 comments

Comments

@littledan
Copy link
Member

The concept of a request's destination has names for different things where a request can originate from. These can be read from a Request object's destination property, or passed in from <link rel="preload"> in the as= attribute. Should this concept relate to the type: values somehow?

h/t to @slightlyoff for drawing this connection

@annevk
Copy link
Member

annevk commented Nov 8, 2019

Changing this value might make sense, but that would require specifying some hierarchy of privilege.

E.g., if you allow JavaScript, it can remain "script", if you only allow JSON, it can be "json". If you allow either, "script".

@bmeck
Copy link
Member

bmeck commented Nov 8, 2019

Should this even be specified/mandated if other environments without that concept are being considered?

@littledan
Copy link
Member Author

We will have to take care for layering. One possibility is for named to be in loose correspondence with each other, but without ES citing Web specs. Another possibility is that this is a correspondence that exists in HTML's interpretation of the type, and not JS's.

@macbook92

This comment has been minimized.

@hamziboos

This comment has been minimized.

@littledan littledan added this to the stage 3 milestone May 20, 2020
@littledan
Copy link
Member Author

Ultimately, I think the strings in the type: attribute will be different from the set of request destinations. They may be related, but not 1:1. This is something to work through in the HTML integration, as it may have implications for what HTTP headers to send in the request, before Stage 3.

@nicolo-ribaudo nicolo-ribaudo removed this from the stage 3 milestone Apr 3, 2023
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

6 participants