ladybird/Libraries/LibWeb/DOM/CharacterData.idl
Timothy Flynn 8b6e3cb735 LibWeb+LibUnicode+WebContent: Port DOM:CharacterData to UTF-16
This replaces the underlying storage of CharacterData with Utf16String
and deals with the fallout.
2025-07-24 19:00:20 +02:00

22 lines
895 B
Text

#import <DOM/ChildNode.idl>
#import <DOM/Element.idl>
#import <DOM/Node.idl>
// https://dom.spec.whatwg.org/#characterdata
[Exposed=Window]
interface CharacterData : Node {
[LegacyNullToEmptyString] attribute Utf16DOMString data;
[ImplementedAs=length_in_utf16_code_units] readonly attribute unsigned long length;
Utf16DOMString substringData(unsigned long offset, unsigned long count);
undefined appendData(Utf16DOMString data);
undefined insertData(unsigned long offset, Utf16DOMString data);
undefined deleteData(unsigned long offset, unsigned long count);
undefined replaceData(unsigned long offset, unsigned long count, Utf16DOMString data);
// https://dom.spec.whatwg.org/#interface-nondocumenttypechildnode
readonly attribute Element? previousElementSibling;
readonly attribute Element? nextElementSibling;
};
CharacterData includes ChildNode;