Manipulation: Respect script nomodule attribute in DOM manipulation
commite4de8b4626f8872a4cb1ee241b60902653567503
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Mon, 21 Jan 2019 17:34:40 +0000 (21 18:34 +0100)
committerGitHub <noreply@github.com>
Mon, 21 Jan 2019 17:34:40 +0000 (21 18:34 +0100)
treeb5a7707bc09e0198cfff9b9919a0a1e4fb7a5370
parent543d3d24eaefe09c4012171f30267783d51602dc
Manipulation: Respect script nomodule attribute in DOM manipulation

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
Closes gh-4282
Ref gh-3871
Ref gh-3869
src/manipulation.js
test/data/inner_nomodule.js [new file with mode: 0644]
test/data/nomodule.js [new file with mode: 0644]
test/unit/manipulation.js