Brendan Eich (2014-01-25T02:33:06.000Z)
domenic at domenicdenicola.com (2014-02-04T15:51:57.866Z)
John Barton wrote: > Now here is a reason, finally, for all the extra complexity the two > goals cause. > > If we want to kill script, let's not stab it with a dull pencil. Let's > make Loader and System be modules, not globals. Then you cannot load > modules with <script>, only with <module>. We are not killing <script>. Dream on! Introducing a new HTML element with implicit CDATA content model will require the old ```html <module> <!-- hide script here if (a < b) { console.log("<\/script> haha"); } --> </module> ``` hacks. This won't do anything (even render the HTML-commented-out fallback content) in old browsers, which will make it hard to work in both new and old. Using <script> with a new attribute has several advantages, in contrast: 1. No need for the return of the HTML comment-hiding hack I invented in Netscape 2 to avoid inline script content showing as fallback in pre-Netscape-2 browsers. 2. Old browsers ignore the new attribute will process the content, which could be written to work "both ways". But mainly: no way to kill script. Amending above words: do not dream on, wake up!