LibWeb: Implement Text.wholeText

This getter returns the concatenation of the data of the contiguous
Text nodes of `this` (being this plus its siblings) in tree order.
This commit is contained in:
Ángel Carias 2024-07-19 13:57:24 -06:00 committed by Tim Ledbetter
commit 69da6a0ce4
Notes: github-actions[bot] 2024-07-20 17:03:45 +00:00
5 changed files with 76 additions and 1 deletions

View file

@ -0,0 +1,6 @@
Text node A with no siblings: A
Text node B with previous sibling A: AB
Text node B with previous sibling A and next sibling C: ABC
CDATA section D with no siblings: D
CDATA section E with previous sibling D: DE
CDATA section E with previous sibling D and next sibling F: DEF