xpath-ts2
Version:
DOM 3 and 4 XPath 1.0 implementation for browser and Node.js environment with support for typescript 5.
66 lines (65 loc) • 2.33 kB
TypeScript
export declare class XPathNamespace implements Node {
static XPATH_NAMESPACE_NODE: number;
isXPathNamespace: boolean;
ownerDocument: Document | null;
nodeName: string;
prefix: string;
localName: string;
namespaceURI: string;
nodeValue: string;
ownerElement: Element;
nodeType: number;
constructor(pre: string, ns: string, p: Element);
toString(): string;
/**
* Unused and unsupported properties
*/
readonly baseURI: string;
readonly childNodes: NodeListOf<ChildNode>;
readonly firstChild: ChildNode | null;
readonly isConnected: boolean;
readonly lastChild: ChildNode | null;
readonly nextSibling: ChildNode | null;
readonly parentElement: HTMLElement | null;
readonly parentNode: Node & ParentNode | null;
readonly previousSibling: ChildNode | null;
textContent: string | null;
appendChild: typeof unsupported;
cloneNode: typeof unsupported;
compareDocumentPosition: typeof unsupported;
contains: typeof unsupported;
getRootNode: typeof unsupported;
hasChildNodes: typeof unsupported;
insertBefore: typeof unsupported;
isDefaultNamespace: typeof unsupported;
isEqualNode: typeof unsupported;
isSameNode: typeof unsupported;
lookupNamespaceURI: typeof unsupported;
lookupPrefix: typeof unsupported;
normalize: typeof unsupported;
removeChild: typeof unsupported;
replaceChild: typeof unsupported;
readonly ATTRIBUTE_NODE: 2;
readonly CDATA_SECTION_NODE: 4;
readonly COMMENT_NODE: 8;
readonly DOCUMENT_FRAGMENT_NODE: 11;
readonly DOCUMENT_NODE: 9;
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
readonly DOCUMENT_POSITION_CONTAINS: 8;
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
readonly DOCUMENT_POSITION_FOLLOWING: 4;
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
readonly DOCUMENT_POSITION_PRECEDING: 2;
readonly DOCUMENT_TYPE_NODE: 10;
readonly ELEMENT_NODE: 1;
readonly ENTITY_NODE: 6;
readonly ENTITY_REFERENCE_NODE: 5;
readonly NOTATION_NODE: 12;
readonly PROCESSING_INSTRUCTION_NODE: 7;
readonly TEXT_NODE: 3;
addEventListener: typeof unsupported;
dispatchEvent: typeof unsupported;
removeEventListener: typeof unsupported;
}
declare function unsupported(): any;
export {};