LibHTML: Add Node::text_content()

This returns a String built from all of a Node's text descendants,
including itself.
This commit is contained in:
Andreas Kling 2019-09-29 16:22:15 +02:00
commit 0c6af2d5b4
Notes: sideshowbarker 2024-07-19 11:53:33 +09:00
3 changed files with 24 additions and 4 deletions

View file

@ -36,6 +36,8 @@ public:
virtual String tag_name() const = 0;
virtual String text_content() const;
Document& document() { return m_document; }
const Document& document() const { return m_document; }