You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
312 B

  1. import NodeType from './type';
  2. /**
  3. * Node Class as base class for TextNode and HTMLElement.
  4. */
  5. export default abstract class Node {
  6. abstract nodeType: NodeType;
  7. childNodes: Node[];
  8. abstract text: string;
  9. abstract rawText: string;
  10. abstract toString(): string;
  11. get innerText(): string;
  12. }