HTML Is Dead, Long Live HTML
9 months ago
- #Web Development
- #CSS
- #DOM
- The DOM has become bloated with over 350+ keys in Chrome's document.body and 660 CSS properties, making it complex and inefficient.
- Web Components and Semantic HTML have failed to meet expectations, with clunky APIs and unclear guidelines.
- CSS layout models are confusing, with inside-out and outside-in approaches leading to unpredictable behavior.
- SVG and CSS overlap but have inconsistencies, making graphical rendering a trade-off between the two.
- Proposals like HTML in Canvas are flawed, as they don't solve core issues and introduce new complexities.
- Alternative approaches, like Use.GPU's HTML-like renderer, demonstrate that simpler, more efficient solutions are possible.
- Browser vendors and alt-browser projects (e.g., Servo, Ladybird) could lead the way in rethinking the DOM from scratch.
- A redesigned DOM should prioritize multi-threading, security, and modern UI needs while shedding legacy baggage.