summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/CharacterData.idl
blob: 15b7af0825e6da770c7912122d8668341de374d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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 replaceData(unsigned long offset, unsigned long count, DOMString data);

    readonly attribute Element? nextElementSibling;
    readonly attribute Element? previousElementSibling;

    // FIXME: These should come from a ChildNode mixin
    [CEReactions, Unscopable] undefined before((Node or DOMString)... nodes);
    [CEReactions, Unscopable] undefined after((Node or DOMString)... nodes);
    [CEReactions, Unscopable] undefined replaceWith((Node or DOMString)... nodes);
    [CEReactions, Unscopable, ImplementedAs=remove_binding] undefined remove();

};