Re: [w3c/webcomponents] Make JavaScript Files a Valid Entry Point to a Web Page (#807)

What's the downside to wrapping your JS so that it's both valid JS and valid HTML by using  https://tc39.github.io/ecma262/#prod-annexB-SingleLineHTMLOpenComment

> SingleLineHTMLOpenComment ::
> &nbsp; &nbsp; `<!--` SingleLineCommentChars<sub>opt</sub>

```js
<!-- --><script type="module">

...

// </script>
```


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/807#issuecomment-487728560

Received on Monday, 29 April 2019 20:21:19 UTC