Hacker News new | past | comments | ask | show | jobs | submit login

Comment nodes, multiple text nodes in one element node, CDATA section.



Are 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.


If you have a rich text editor or inline SVG there, you're bound to have to deal with them eventually.


Why? 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?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: