DEV Community

Discussion on: If the World Wide Web were re-created today with no legacy dependencies, how would it be different?

Collapse
 
maxart2501 profile image
Massimo Artizzu • Edited

HTML

Basically no HTML. XML-like structures are just too verbose. No more legacy event handling and no more distinction between attributes and properties.

JavaScript

No more global objects for APIs. No more document, or fetch, or Date, or Promise. We'd have to explicitly import from modules, like we'll have to do to use the brand new KV Storage.

CSS

A solid way to encapsulate styles and expose part of components to theming (see Shadow DOM, and ::part and ::theme). No more legacy WTFs (like using vertical-align for two completely different things).