Files
serenity/Userland/Libraries/LibWeb/DOM/Text.idl
Ángel Carias 0b74214a6e 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.

(cherry picked from commit 69da6a0ce400d4a675bfba1f1dd1d313ee1f13c0)
2024-07-23 12:45:37 -04:00

15 lines
358 B
Plaintext

#import <DOM/CharacterData.idl>
#import <DOM/Slottable.idl>
#import <HTML/HTMLSlotElement.idl>
// https://dom.spec.whatwg.org/#text
[Exposed=Window]
interface Text : CharacterData {
constructor(optional DOMString data = "");
[NewObject] Text splitText(unsigned long offset);
readonly attribute DOMString wholeText;
};
Text includes Slottable;