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

Incorrect recommendation for JavaScript content-type header #787

Closed
paulschreiber opened this issue Jan 30, 2018 · 4 comments
Closed

Incorrect recommendation for JavaScript content-type header #787

paulschreiber opened this issue Jan 30, 2018 · 4 comments

Comments

@paulschreiber
Copy link

Sonarwhal is providing an incorrect content-type recommendation for JavaScript.

It states:

'content-type' header should have media type 'text/javascript'
(not 'application/x-javascript')

The value should be application/javascript. See RFC 4329

@alrra
Copy link
Contributor

alrra commented Jan 30, 2018

@paulschreiber See: #568.

@alrra alrra closed this as completed Jan 30, 2018
@paulschreiber
Copy link
Author

@alrra #568 is closed, and makes an incorrect recommendation (text/javascript). The IETF document you referred to is still a draft.

@alrra
Copy link
Contributor

alrra commented Jan 30, 2018

@paulschreiber See: #568 (comment)

@alrra
Copy link
Contributor

alrra commented Jan 30, 2018

HTML spec

See also: https://html.spec.whatwg.org/multipage/infrastructure.html#dependencies

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

2 participants