mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-21 16:58:58 +00:00
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:
parent
7dacd6be89
commit
69da6a0ce4
Notes:
github-actions[bot]
2024-07-20 17:03:45 +00:00
Author: https://github.com/aescarias 🔰
Commit: 69da6a0ce4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/725
Reviewed-by: https://github.com/tcl3 ✅
5 changed files with 76 additions and 1 deletions
6
Tests/LibWeb/Text/expected/DOM/Text-wholeText.txt
Normal file
6
Tests/LibWeb/Text/expected/DOM/Text-wholeText.txt
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue