版博士V2.0程序
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.
 
 
 
 

52 lines
2.1 KiB

  1. import IEventTarget from '../../event/IEventTarget';
  2. import IDocument from '../document/IDocument';
  3. import IElement from '../element/IElement';
  4. import INodeList from './INodeList';
  5. import NodeTypeEnum from './NodeTypeEnum';
  6. import NodeDocumentPositionEnum from './NodeDocumentPositionEnum';
  7. export default interface INode extends IEventTarget {
  8. readonly ELEMENT_NODE: NodeTypeEnum;
  9. readonly ATTRIBUTE_NODE: NodeTypeEnum;
  10. readonly TEXT_NODE: NodeTypeEnum;
  11. readonly CDATA_SECTION_NODE: NodeTypeEnum;
  12. readonly COMMENT_NODE: NodeTypeEnum;
  13. readonly DOCUMENT_NODE: NodeTypeEnum;
  14. readonly DOCUMENT_TYPE_NODE: NodeTypeEnum;
  15. readonly DOCUMENT_FRAGMENT_NODE: NodeTypeEnum;
  16. readonly PROCESSING_INSTRUCTION_NODE: NodeTypeEnum;
  17. readonly DOCUMENT_POSITION_DISCONNECTED: NodeDocumentPositionEnum;
  18. readonly DOCUMENT_POSITION_PRECEDING: NodeDocumentPositionEnum;
  19. readonly DOCUMENT_POSITION_FOLLOWING: NodeDocumentPositionEnum;
  20. readonly DOCUMENT_POSITION_CONTAINS: NodeDocumentPositionEnum;
  21. readonly DOCUMENT_POSITION_CONTAINED_BY: NodeDocumentPositionEnum;
  22. readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: NodeDocumentPositionEnum;
  23. readonly ownerDocument: IDocument;
  24. readonly parentNode: INode;
  25. readonly parentElement: IElement;
  26. readonly nodeType: number;
  27. readonly childNodes: INodeList<INode>;
  28. readonly isConnected: boolean;
  29. readonly nodeName: string;
  30. readonly previousSibling: INode;
  31. readonly nextSibling: INode;
  32. readonly firstChild: INode;
  33. readonly lastChild: INode;
  34. readonly baseURI: string;
  35. nodeValue: string;
  36. textContent: string;
  37. connectedCallback?(): void;
  38. disconnectedCallback?(): void;
  39. getRootNode(options?: {
  40. composed: boolean;
  41. }): INode;
  42. cloneNode(deep: boolean): INode;
  43. appendChild(node: INode): INode;
  44. removeChild(node: INode): INode;
  45. hasChildNodes(): boolean;
  46. contains(otherNode: INode): boolean;
  47. insertBefore(newNode: INode, referenceNode?: INode | null): INode;
  48. replaceChild(newChild: INode, oldChild: INode): INode;
  49. toString(): string;
  50. compareDocumentPosition(otherNode: INode): number;
  51. }