XML::DOM::Comment(3)

πŸ’– NAME πŸ’–

XML::DOM::Comment β€” it's an XML comment, bestie, living right inside XML::DOM ✨

So yeah, the manual page calls itself XML::DOM::Comment (the perl one, from the "User Contributed Perl Documentation" corner of the universe 🫢). Anyway. Let's talk about it.


🌸 DESCRIPTION 🌸

Okay so picture the DOM family tree, because this is giving main character with a whole lineage πŸ‘‘:

XML::DOM::Comment extends XML::DOM::CharacterData, which itself extends XML::DOM::Node. So it's a node, it's character data, and it's specifically the comment-flavored one. Three layers of icon behavior, no cap πŸ’…

πŸ’¬ what this node actually is

This node represents the content of a comment β€” literally all the characters sitting between the starting <!-- and the ending -->. That's it, that's the whole vibe. The stuff in the middle? That's your node's content, bestie πŸŽ€

πŸ¦‹ quick reality check

Heads up: this is the definition of a comment in XML β€” and, in practice, HTML too. But some HTML tools may go ahead and implement the full SGML comment structure instead. So like, don't come for me if an HTML tool does its own thing πŸ™ˆ

periodt. that's the whole page βœ¨πŸ’œ

Cute little sign-off: this page is from perl v5.42.0, dated 2022-05-23. Iconic. Obsessed. Byeee πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from