node.d.ts 483 B

1234567891011121314151617
  1. import NodeType from './type';
  2. import HTMLElement from './html';
  3. /**
  4. * Node Class as base class for TextNode and HTMLElement.
  5. */
  6. export default abstract class Node {
  7. parentNode: HTMLElement;
  8. abstract nodeType: NodeType;
  9. childNodes: Node[];
  10. abstract text: string;
  11. abstract rawText: string;
  12. abstract toString(): string;
  13. constructor(parentNode?: HTMLElement);
  14. get innerText(): string;
  15. get textContent(): string;
  16. set textContent(val: string);
  17. }