mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:07:34 +00:00
LibWeb: Make Node.textContent more spec compliant
The current implementation felt a bit ad-hoc and notably allowed textContent to operate on all node types. It also only returned the child text content of the Node instead of the descendant text content.
This commit is contained in:
parent
d36838d050
commit
5e61382849
4 changed files with 40 additions and 14 deletions
|
@ -25,8 +25,6 @@ public:
|
|||
|
||||
unsigned length() const { return m_data.length(); }
|
||||
|
||||
virtual String text_content() const override { return m_data; }
|
||||
|
||||
protected:
|
||||
explicit CharacterData(Document&, NodeType, const String&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue