@microsoft/fast-element > DOM

DOM variable

Common DOM APIs.

Signature:
DOM: Readonly<{
supportsAdoptedStyleSheets: boolean;
setHTMLPolicy(policy: TrustedTypesPolicy): void;
createHTML(html: string): string;
isMarker(node: Node): node is Comment;
extractDirectiveIndexFromMarker(node: Comment): number;
createInterpolationPlaceholder(index: number): string;
createCustomAttributePlaceholder(attributeName: string, index: number): string;
createBlockPlaceholder(index: number): string;
queueUpdate(callable: Callable): void;
nextUpdate(): Promise<void>;
setAttribute(element: HTMLElement, attributeName: string, value: any): void;
setBooleanAttribute(element: HTMLElement, attributeName: string, value: boolean): void;
removeChildNodes(parent: Node): void;
createTemplateWalker(fragment: DocumentFragment): TreeWalker;
}>