// 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;
