@matthewp/linkedom
Version:
A triple-linked lists based DOM implementation
66 lines (65 loc) • 2.56 kB
TypeScript
/**
* @implements globalThis.Element
*/
export class Element extends ParentNode implements globalThis.Element {
constructor(ownerDocument: any, localName: any);
before(...nodes: any[]): void;
after(...nodes: any[]): void;
replaceWith(...nodes: any[]): void;
remove(): void;
set id(arg: any);
get id(): any;
set className(arg: string);
get className(): string;
get tagName(): any;
get classList(): DOMTokenList;
get dataset(): DOMStringMap;
set nonce(arg: any);
get nonce(): any;
get style(): CSSStyleDeclaration;
set tabIndex(arg: number);
get tabIndex(): number;
get innerText(): string;
set innerHTML(arg: string);
get innerHTML(): string;
set outerHTML(arg: string);
get outerHTML(): string;
get attributes(): any;
focus(): void;
getAttribute(name: any): any;
getAttributeNode(name: any): import("../mixin/parent-node.js").NodeStruct;
getAttributeNames(): NodeList;
hasAttribute(name: any): boolean;
hasAttributes(): boolean;
removeAttribute(name: any): void;
removeAttributeNode(attribute: any): void;
setAttribute(name: any, value: any): void;
setAttributeNode(attribute: any): import("../mixin/parent-node.js").NodeStruct;
toggleAttribute(name: any, force: any, ...args: any[]): boolean;
get shadowRoot(): any;
attachShadow(init: any): ShadowRoot;
matches(selectors: any): any;
closest(selectors: any): Element;
insertAdjacentElement(position: any, element: any): any;
insertAdjacentHTML(position: any, html: any): void;
insertAdjacentText(position: any, text: any): void;
toJSON(): any[];
getAttributeNS(_: any, name: any): any;
getElementsByTagNameNS(_: any, name: any): NodeList;
hasAttributeNS(_: any, name: any): boolean;
removeAttributeNS(_: any, name: any): void;
setAttributeNS(_: any, name: any, value: any): void;
setAttributeNodeNS(attr: any): import("../mixin/parent-node.js").NodeStruct;
[CLASS_LIST]: DOMTokenList;
[DATASET]: DOMStringMap;
[STYLE]: CSSStyleDeclaration;
}
import { ParentNode } from "../mixin/parent-node.js";
import { DOMTokenList } from "../dom/token-list.js";
import { DOMStringMap } from "../dom/string-map.js";
import { CSSStyleDeclaration } from "./css-style-declaration.js";
import { NodeList } from "./node-list.js";
import { ShadowRoot } from "./shadow-root.js";
import { CLASS_LIST } from "../shared/symbols.js";
import { DATASET } from "../shared/symbols.js";
import { STYLE } from "../shared/symbols.js";