You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@mikesamuel do you have more context on JS modules differences with normal scripts?
There's no significant difference.
A JS ModuleBody is just a strict mode ScriptBody that can also contain import and export declarations.
So I think we can add "module" to https://golang.org/src/html/template/js.go#L390
Coming here from https://go-review.googlesource.com/c/go/+/135417/1#message-7dd5e123817a64371e99231b997ff292794e9e33 in which I suggested we create a corresponding issue for posterity and for detailed conversations/discussions
@tomuta submitted PR #27697 and below are details of the PR
What did you do?
template/html does not properly treat javascript code as javascript when using a
<script type="module"
tag:What did you expect to see?
What did you see instead?
See also: https://www.w3.org/TR/html5/semantics-scripting.html#element-attrdef-script-type
The text was updated successfully, but these errors were encountered: