Based on recent trends and our learned knowledge over the years, browsers could support a more well-designed and formal programming language for the next-generation web.
Due to the “complexities” of the HTML standard, each browser has a lot of messy bloated code to manage the context-sensitive grammar. Speaking of which, the new programming language of the web doesn’t need to be so forgiving to implementations because we have the ability to show exactly what is wrong in the code and where [to some degree at least]. Also, as programming becomes more and more popular, there will eventually be better documentation so that new programmers can learn much easier. This loss of forgivingness in the HTML code allows other code dealing with it to be so much simpler, which is a good trade-off.
What if we had a more modern programming language that can run directly in the browser without that conversion beforehand?
There doesn’t need to be three different languages to handle the layout/style/dynamics of webpages. A single language could also have the separation of concerns with the added benefit of overall simpler design because browsers wouldn’t have to each implement the language ‘glue’ themselves, it would already be provided by the single language specs.
Perhaps, we can build a ‘browser-in-a-browser’ to get us started in this direction. It may even be operated in full-screen mode to help simulate the stand-alone browser better. The reason for ‘browser-in-a-browser’ is so that many more people would have immediate access to it without a separate download, but that would be a relatively simple addition afterwards with the help of Node/Electron. Hopefully, eventually, there would be direct support in the browsers instead so that the user experience would be better.
Another idea that I’ve played around with just a little bit is to have the different stand-alone browser with the main focus on speed of just webpages that use the different more modern programming languages.
I haven’t done much external research in this area yet to find out if others are already working in this direction. I hope there are, and I’d be happy to help out.
On a completely different note, we can also take this time to have a more ‘standard’ vocabulary that is used when dealing about layout, styles, and actions. Not everything has to be exactly the same at first, but we can work towards having a common language between all the platforms. One specific example of this would be to not require the html tag that is just web-specific.
As a side-hobby, I’m slowly working on a common vocabulary to propose and a programming language that uses the simple vocabulary. Even though I am biased for my own creation and ideas, I wouldn’t be opposed to joining another’s project instead that has the same ideas so that more can be accomplished sooner. (Insert XKCD standards, haha)