4 ms·
Comment nodes, multiple text nodes in one element node, CDATA section.
by Tade0 7y ago
Comment nodes, multiple text nodes in one element node, CDATA section.
- wtetzner 7y agoAre there any examples of where you'd need that in a web application that's just being used to update the DOM? None of those seem to be necessary to create a modern web application. I'm not arguing, just trying to understand.
- Tade0 7y agoIf you have a rich text editor or inline SVG there, you're bound to have to deal with them eventually.
- wtetzner 7y agoWhy? I'm really trying to understand. If you're directly modifying the DOM, why would you need comments or CDATA tags? Is CDATA useful in a DOM if you don't actually need a textual representation?