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

Manipulation: Respect script nomodule attribute in DOM manipulation #4282

Merged
merged 1 commit into from
Jan 21, 2019

Conversation

mgol
Copy link
Member

@mgol mgol commented Jan 17, 2019

Summary

PR #3869 added support for <script type="module"> & some support for
the nomodule attribute but with no tests for nomodule and with the
attribute only respected on inline scripts. This commit adds support for
source-based scripts as well. It also adds tests for nomodule, including
making sure legacy browsers execute such scripts as they'd natively do - that's
the whole point of nomodule scripts, after all.

Fixes gh-4281
Ref gh-3871
Ref gh-3869

Checklist

PR jquery#3869 added support for `<script type="module">` & some support for
the `nomodule` attribute but with no tests for `nomodule` and with the
attribute only respected on inline scripts. This commit adds support for
source-based scripts as well. It also adds tests for `nomodule`, including
making sure legacy browsers execute such scripts as they'd natively do - that's
the whole point of `nomodule` scripts, after all.

Fixes jquerygh-4281
Ref jquerygh-3871
Ref jquerygh-3869
@mgol
Copy link
Member Author

mgol commented Jan 17, 2019

+9 bytes.

@mgol mgol merged commit e4de8b4 into jquery:master Jan 21, 2019
@mgol mgol deleted the nomodule-src branch January 21, 2019 17:34
@mgol mgol removed the Needs review label Jan 21, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jul 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

nomodule attribute is not respected on scripts with sources
3 participants