|
|
|
|
|
by Chris2048
3053 days ago
|
|
> which we have already: HTML HTML cannot perform 90% of what JS is used for, otherwise the js wouldn't be needed. "Define new tags" might be one way, ala Angular directives, but it would still require notions of safety attached to those directives/functions. > You generate that server side. A server-side crypto miner? Websites/apps are increasingly client-side intensive/heavy. Perhaps there is no need for non-generic/safe client side code, but I'm not so sure. In any case, requiring permission to run anything custom would be a reasonable restriction I think. |
|
Yes, that's the goal.
> Angular ... directives/functions
HTML is a document format, not an application framework. My entire point is that complexity cannot be made safe. Repackaging the Turing completeness into different forms only moves the problem around. The only way to reduce the attack surface back to something that is decidable is to remove complexity (aka features).
> A server-side crypto miner?
You can do whatever you want on the server. However, I was replying to the desire for "anything custom".
> Websites/apps are increasingly client-side intensive/heavy.
Yes, that's the problem.
> but I'm not so sure
Server-side apps worked fine before Javascript existed, just like they did on the IBM 3270 which was the model for HTML+forms.
> requiring permission to run anything custom would be a reasonable restriction I think.
That only re-creates the current situation on phones where apps ask for everything and refuse to run if you don't grant them permission. That hasn't worked in practice, because it's easy to social engineer people that do not have the necessary engineering background to understand what that permission really means.