4 ms·
I don't really think that's quite correct. To someone reading (or authoring) a document, the end state/goal is having that string of text visible and formatted
by Falkon1313 3y ago
I don't really think that's quite correct.
To someone reading (or authoring) a document, the end state/goal is having that string of text visible and formatted well enough. They don't care about DOM objects.
The main reason we use HTML is not because people enjoy DOM-traversal or parsing or abstract syntax trees. It's because a little markup in your strings can make them format nicely and make it easy to link to and embed other stuff like images, video, and audio.
String templating/interpolation is the goal.
- austin-cheney 3y agoWhat some people claim to want is irrelevant to how the technology executes. We may want little strings, HTML, or whatever. The end state is a DOM object in memory irrespective of what some developers enjoy. If you want a different end state your choices at the moment are either fully abandon web technologies or use WASM.