2022-07-27 17:14:16 -03:00
|
|
|
#import <DOM/ChildNode.idl>
|
2022-02-15 16:10:51 -03:00
|
|
|
#import <DOM/Element.idl>
|
|
|
|
|
#import <DOM/Node.idl>
|
|
|
|
|
|
2022-07-27 17:14:16 -03:00
|
|
|
// https://dom.spec.whatwg.org/#characterdata
|
2023-09-07 06:36:05 -03:00
|
|
|
[Exposed=Window]
|
2020-08-03 15:50:45 -03:00
|
|
|
interface CharacterData : Node {
|
2025-07-24 13:05:52 -03:00
|
|
|
[LegacyNullToEmptyString] attribute Utf16DOMString data;
|
2023-12-22 04:41:34 -03:00
|
|
|
[ImplementedAs=length_in_utf16_code_units] readonly attribute unsigned long length;
|
2020-08-03 15:50:45 -03:00
|
|
|
|
2025-07-24 13:05:52 -03:00
|
|
|
Utf16DOMString substringData(unsigned long offset, unsigned long count);
|
|
|
|
|
undefined appendData(Utf16DOMString data);
|
|
|
|
|
undefined insertData(unsigned long offset, Utf16DOMString data);
|
2022-07-11 12:23:50 -03:00
|
|
|
undefined deleteData(unsigned long offset, unsigned long count);
|
2025-07-24 13:05:52 -03:00
|
|
|
undefined replaceData(unsigned long offset, unsigned long count, Utf16DOMString data);
|
2022-03-21 13:20:42 -03:00
|
|
|
|
2023-10-25 12:27:19 -03:00
|
|
|
// https://dom.spec.whatwg.org/#interface-nondocumenttypechildnode
|
2020-08-03 15:50:45 -03:00
|
|
|
readonly attribute Element? previousElementSibling;
|
2023-10-25 12:27:19 -03:00
|
|
|
readonly attribute Element? nextElementSibling;
|
2020-12-09 18:26:42 -03:00
|
|
|
};
|
2022-07-30 07:31:17 -03:00
|
|
|
|
|
|
|
|
CharacterData includes ChildNode;
|