CharacterData.idl 870 B

12345678910111213141516171819202122
  1. #import <DOM/ChildNode.idl>
  2. #import <DOM/Element.idl>
  3. #import <DOM/Node.idl>
  4. // https://dom.spec.whatwg.org/#characterdata
  5. [Exposed=Window]
  6. interface CharacterData : Node {
  7. [LegacyNullToEmptyString] attribute DOMString data;
  8. [ImplementedAs=length_in_utf16_code_units] readonly attribute unsigned long length;
  9. DOMString substringData(unsigned long offset, unsigned long count);
  10. undefined appendData(DOMString data);
  11. undefined insertData(unsigned long offset, DOMString data);
  12. undefined deleteData(unsigned long offset, unsigned long count);
  13. undefined replaceData(unsigned long offset, unsigned long count, DOMString data);
  14. // https://dom.spec.whatwg.org/#interface-nondocumenttypechildnode
  15. readonly attribute Element? previousElementSibling;
  16. readonly attribute Element? nextElementSibling;
  17. };
  18. CharacterData includes ChildNode;