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

@Lonniebiz 

> I believe, that if a client-side javascript module is directly navigated to, and exports a valid html document, the browser should run that javascript and display that document instead of just showing the source code.

How would you know it exports a valid html document before running the code? Seems undesirable to change the behavior of browsers so it executes all javascript when you navigate to a .js file. It wouldn't even make sense in the majority of cases. 

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

Received on Tuesday, 30 April 2019 19:30:43 UTC