ladybird/Userland/Libraries/LibWeb/DOM/CharacterData.idl

25 lines
1,006 B
Text
Raw Normal View History

#import <DOM/Element.idl>
#import <DOM/Node.idl>
interface CharacterData : Node {
[LegacyNullToEmptyString] attribute DOMString data;
readonly attribute unsigned long length;
DOMString substringData(unsigned long offset, unsigned long count);
undefined appendData(DOMString data);
undefined insertData(unsigned long offset, DOMString data);
undefined deleteData(unsigned long offset, unsigned long count);
undefined replaceData(unsigned long offset, unsigned long count, DOMString data);
readonly attribute Element? nextElementSibling;
readonly attribute Element? previousElementSibling;
2022-01-29 21:33:12 +00:00
// FIXME: These should come from a ChildNode mixin
[CEReactions, Unscopable] undefined before((Node or DOMString)... nodes);
2022-01-29 21:44:41 +00:00
[CEReactions, Unscopable] undefined after((Node or DOMString)... nodes);
[CEReactions, Unscopable] undefined replaceWith((Node or DOMString)... nodes);
2021-09-29 16:25:48 +01:00
[CEReactions, Unscopable, ImplementedAs=remove_binding] undefined remove();
};