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

I also hate the ugly grammer of html, but the browser's responsibilitt is to browse different mimes of resource, NOT JUST text/html. Browser can display image, text, audio, pdf.... Although not friendly, showing the plain text of text/javascript instead of executing it is what things SHOULD be. 

Only browsing text/html will load the VM library and DOM, but other resources have nothing to do with the VM. 

Maybe in the future, here comes a new mime like webpage/javascript or something, the content of that is pure javascript code or even WebAssembly! Then we can load webpage from javascript directly.

-- 
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-534523638

Received on Tuesday, 24 September 2019 11:54:39 UTC