---
id: fast-element.dom
title: DOM variable
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-element](./fast-element.md) &gt; [DOM](./fast-element.dom.md)

## DOM variable

Common DOM APIs.

<b>Signature:</b>

```typescript
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;
    processUpdates: () => 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;
}>
```