### Import Example Source: https://jsr.io/%40b-fuze/deno-dom%400.1.56/doc/native Example of how to import the Deno DOM API with the native binary backend. ```APIDOC ```typescript import * as This_module_exposes_the_Deno_DOM_API_with_the_native_binary_backend__Unlike_the_WASM_backend_the_native_backend_requires_more_permissions_due_to_the_nature_of_how_native_bindings_work__They_include________unstable_ffi_______allow_ffi_______allow_env_______allow_read_______allow_net_deno_land__ from "@b-fuze/deno-dom/native"; ``` Or using a JSR specifier: ```typescript import * as This_module_exposes_the_Deno_DOM_API_with_the_native_binary_backend__Unlike_the_WASM_backend_the_native_backend_requires_more_permissions_due_to_the_nature_of_how_native_bindings_work__They_include________unstable_ffi_______allow_ffi_______allow_env_______allow_read_______allow_net_deno_land__ from "jsr:@b-fuze/deno-dom/native"; ``` ``` -------------------------------- ### Install @b-fuze/deno-dom Source: https://jsr.io/%40b-fuze/deno-dom%400.1.56/doc/wasm-noinit/~/DOMParser.prototype Use this command to add the package to your project. This is the initial setup step before importing any symbols. ```bash deno add jsr:@b-fu-fuze/deno-dom ``` -------------------------------- ### Deno DOM Initialization Example Source: https://jsr.io/%40b-fuze/deno-dom/diff/0.1.56...0.1.48/all_symbols?full= Example demonstrating how to initialize and use Deno DOM for parsing HTML. ```APIDOC ## Example: Deno DOM Initialization and Usage ### Description This example shows how to import `DOMParser` and `initParser`, initialize the parser, and then use `parseFromString` to parse HTML content. It further demonstrates querying the parsed document using `querySelector`. ### Code ```typescript import { DOMParser, initParser } from "jsr:@b-fuze/deno-dom/native"; // Initialize the parser await initParser(); // Create a DOMParser instance const doc = new DOMParser().parseFromString( `
Hello from Deno!
`, "text/html", ); // Query the document const p = doc.querySelector("p")!; console.log(p.textContent); // Output: "Hello from Deno!" ``` ``` -------------------------------- ### Deno DOM Initialization and Usage Example Source: https://jsr.io/%40b-fuze/deno-dom/diff/0.1.43...0.1.56/all_symbols?full= Example demonstrating how to initialize Deno DOM and use the DOMParser to parse HTML and query elements. ```APIDOC ## Example: Deno DOM Initialization and Usage ### Description This example shows how to import and initialize Deno DOM, then use `DOMParser` to parse an HTML string and `querySelector` to find an element. ### Code ```typescript import { DOMParser, initParser } from "jsr:@b-fuze/deno-dom/native"; // Initialize the parser await initParser(); // Create a DOMParser instance const parser = new DOMParser(); // Parse an HTML string const doc = parser.parseFromString( `Hello from Deno!
`, "text/html", ); // Query for an element const p = doc.querySelector("p")!; console.log(p.textContent); // Output: "Hello from Deno!" ``` ``` -------------------------------- ### Example Usage Source: https://jsr.io/%40b-fuze/deno-dom/doc/all_symbols Demonstrates how to initialize and use the DOMParser from deno-dom. ```APIDOC ## Example 1: Basic DOM Parsing ### Description This example shows how to import and initialize the `DOMParser` and `initParser` from `jsr:@b-fuze/deno-dom/native`, and then use it to parse an HTML string and query elements. ### Code ```typescript import { DOMParser, initParser } from "jsr:@b-fuze/deno-dom/native"; // Initialize the parser (required for Deno DOM) await initParser(); // Create a new DOMParser instance const doc = new DOMParser().parseFromString( `Hello from Deno!
`, "text/html", ); // Query elements from the parsed document const p = doc.querySelector("p")!; console.log(p.textContent); // Output: "Hello from Deno!" ``` ``` -------------------------------- ### Wasm Noinit Example Source: https://jsr.io/%40b-fuze/deno-dom/diff/0.1.50...0.1.56/all_symbols?full= Example demonstrating the initialization and usage of Deno DOM's WASM-based parser. ```APIDOC ### Example: Wasm Noinit ```typescript import { DOMParser, initParser } from "jsr:@b-fuze/deno-dom/wasm-noinit"; // Initialize the parser await initParser(); // Create a new DOMParser instance const doc = new DOMParser().parseFromString( `Hello from Deno!
`, "text/html", ); // Use DOM methods const p = doc.querySelector("p")!; console.log(p.textContent); // "Hello from Deno!" ``` ``` -------------------------------- ### Native DOMParser Example Source: https://jsr.io/%40b-fuze/deno-dom/diff/0.1.49...0.1.56/all_symbols?full= Example demonstrating how to use the native DOMParser in Deno, including initialization and parsing HTML. ```APIDOC ## Example: Native DOMParser Usage ### Description This example shows how to import and use the native `DOMParser` from `@b-fuze/deno-dom/native`. It includes the necessary initialization step and demonstrates parsing an HTML string and querying the resulting document. ### Code ```typescript import { DOMParser, initParser } from "jsr:@b-fuze/deno-dom/native"; // Initialize the parser before use await initParser(); // Create a new DOMParser instance const doc = new DOMParser().parseFromString( `Hello from Deno!
`, "text/html", ); // Query the document for a paragraph element const p = doc.querySelector("p")!; console.log(p.textContent); // Output: "Hello from Deno!" ``` ``` -------------------------------- ### Wasm Noinit Example Source: https://jsr.io/%40b-fuze/deno-dom/diff/0.1.47...0.1.56/all_symbols?full= Example demonstrating the initialization and usage of Deno DOM with the wasm-noinit module for parsing HTML. ```APIDOC ## Example: Wasm Noinit ### Description This example shows how to initialize and use the Deno DOM parser from the `wasm-noinit` module. ### Code ```typescript import { DOMParser, initParser } from "jsr:@b-fuze/deno-dom/wasm-noinit"; // Initialize the parser await initParser(); // Create a new DOMParser instance const doc = new DOMParser().parseFromString( `Hello from Deno!
`, "text/html", ); // Query for an element and log its text content const p = doc.querySelector("p")!; console.log(p.textContent); // Output: "Hello from Deno!" ``` ``` -------------------------------- ### DOMParser Example Source: https://jsr.io/%40b-fuze/deno-dom/diff/0.1.43...0.1.56/all_symbols?full= Example demonstrating how to use DOMParser to parse an HTML string and query elements. ```APIDOC ## Example: Parsing HTML with DOMParser ### Description This example shows how to create a `DOMParser` instance, parse an HTML string, and then use `querySelector` to find and log the text content of a paragraph element. ### Code ```typescript import { DOMParser, Element } from "jsr:@b-fuze/deno-dom"; const doc = new DOMParser().parseFromString( `Hello from Deno!
`, "text/html", ); const p = doc.querySelector("p")!; console.log(p.textContent); // "Hello from Deno!" ``` ``` -------------------------------- ### Deno DOM Initialization and Usage Source: https://jsr.io/%40b-fuze/deno-dom/diff/0.1.56...0.1.47/all_symbols?full= Example demonstrating how to initialize and use the Deno DOM parser. ```APIDOC ## Example: Deno DOM Initialization and Usage ### Description This example shows how to import, initialize, and use the `DOMParser` from Deno DOM, including parsing HTML and querying elements. ### Code ```typescript import { DOMParser, initParser } from "jsr:@b-fuze/deno-dom/wasm-noinit"; // Initialize the parser await initParser(); // Create a new DOMParser instance const parser = new DOMParser(); // Parse an HTML string const htmlString = `Hello from Deno!
`; const doc = parser.parseFromString(htmlString, "text/html"); // Query elements from the parsed document const p = doc.querySelector("p")!; console.log(p.textContent); // Output: "Hello from Deno!" ``` ``` -------------------------------- ### Importing nodesFromString Source: https://jsr.io/%40b-fuze/deno-dom%400.1.56/doc/native/~/nodesFromString Examples of how to import the nodesFromString function into your project. ```APIDOC ```typescript import { nodesFromString } from "@b-fuze/deno-dom/native"; ``` or ```typescript import { nodesFromString } from "jsr:@b-fuze/deno-dom/native"; ``` ``` -------------------------------- ### Importing DocumentType Source: https://jsr.io/%40b-fuze/deno-dom/doc/native/~/DocumentType.prototype Examples of how to import the DocumentType class into your project. ```APIDOC ```typescript import { DocumentType } from "@b-fuze/deno-dom/native"; ``` or ```typescript import { DocumentType } from "jsr:@b-fuze/deno-dom/native"; ``` ``` -------------------------------- ### Importing Attr Source: https://jsr.io/%40b-fuze/deno-dom%400.1.56/doc/native/~/Attr Examples of how to import the Attr symbol into your project. ```typescript import { Attr } from "@b-fuze/deno-dom/native"; ``` ```typescript import { Attr } from "jsr:@b-fuze/deno-dom/native"; ``` -------------------------------- ### Build Script Example Source: https://jsr.io/%40b-fuze/deno-dom/0.1.56/html-parser/plugin/build.rs This snippet shows a basic build script using static_vcruntime::metabuild(). ```rust fn main() { static_vcruntime::metabuild(); } ``` -------------------------------- ### Import deno-dom with Namespace Source: https://jsr.io/%40b-fuze/deno-dom%400.1.55 Example of importing the deno-dom library using a namespace. ```typescript import * as deno_dom from "@b-fuze/deno-dom"; ``` -------------------------------- ### Example Usage Source: https://jsr.io/%40b-fuze/deno-dom/diff/0.1.56...0.1.55/all_symbols?full= Demonstrates how to initialize and use the Deno DOM parser to parse HTML and query elements. ```APIDOC ## Example 1: Basic DOM Parsing ### Description This example shows how to import, initialize, and use the `DOMParser` to parse an HTML string and then query elements using `querySelector`. ### Code ```typescript import { DOMParser, initParser } from "jsr:@b-fuze/deno-dom/native"; // Initialize the parser (required for Deno DOM) await initParser(); // Create a new DOMParser instance const doc = new DOMParser().parseFromString( `Hello from Deno!
`, "text/html", ); // Query for a paragraph element and log its text content const p = doc.querySelector("p")!; console.log(p.textContent); // Output: "Hello from Deno!" ``` ``` -------------------------------- ### Importing Comment Source: https://jsr.io/%40b-fuze/deno-dom%400.1.56/doc/~/Comment.prototype Examples of how to import the Comment class into your Deno project. ```APIDOC ```typescript import { Comment } from "@b-fuze/deno-dom"; ``` or ```typescript import { Comment } from "jsr:@b-fuze/deno-dom"; ``` ``` -------------------------------- ### Example 1: Basic DOM Parsing and Querying Source: https://jsr.io/%40b-fuze/deno-dom/diff/0.1.51...0.1.56/all_symbols?full= Demonstrates how to initialize the Deno DOM parser, parse an HTML string, and query elements using `querySelector`. ```typescript import { DOMParser, initParser } from "jsr:@b-fuze/deno-dom/native"; // Initialize the parser await initParser(); // Parse an HTML string const doc = new DOMParser().parseFromString( `Hello from Deno!
`, "text/html", ); // Query an element and log its text content const p = doc.querySelector("p")!; console.log(p.textContent); // "Hello from Deno!" ``` -------------------------------- ### Import VisibilityState Source: https://jsr.io/%40b-fuze/deno-dom/doc/wasm-legacy/~/VisibilityState Examples of how to import the VisibilityState type alias into your Deno project. ```typescript import { type VisibilityState } from "@b-fuze/deno-dom/wasm-legacy"; ``` ```typescript import { type VisibilityState } from "jsr:@b-fuze/deno-dom/wasm-legacy"; ``` -------------------------------- ### Example 1: Basic DOM Parsing and Querying Source: https://jsr.io/%40b-fuze/deno-dom/doc/all_symbols Demonstrates how to initialize the WASM parser, parse an HTML string, and query elements using `querySelector`. ```typescript import { DOMParser, initParser } from "jsr:@b-fuze/deno-dom/wasm-noinit"; // Initialize the parser await initParser(); // Parse an HTML string const doc = new DOMParser().parseFromString( `Hello from Deno!
`, "text/html", ); // Query for an element and log its text content const p = doc.querySelector("p")!; console.log(p.textContent); // "Hello from Deno!" ``` -------------------------------- ### Example 1: DOMParser Initialization and Usage Source: https://jsr.io/%40b-fuze/deno-dom/diff/0.1.54...0.1.56/all_symbols?full= Demonstrates how to initialize the WASM-based DOMParser and use it to parse an HTML string and query elements. ```typescript import { DOMParser, initParser } from "jsr:@b-fuze/deno-dom/wasm-noinit"; // Initialize the parser await initParser(); // Create a new DOMParser instance const doc = new DOMParser().parseFromString( `Hello from Deno!
`, "text/html", ); // Query for an element and log its text content const p = doc.querySelector("p")!; console.log(p.textContent); // Output: "Hello from Deno!" ``` -------------------------------- ### Import VisibilityState Source: https://jsr.io/%40b-fuze/deno-dom/doc/wasm-noinit/~/VisibilityState Example of how to import the VisibilityState type alias from the @b-fuze/deno-dom package. ```typescript import { type VisibilityState } from "@b-fuze/deno-dom/wasm-noinit"; ``` -------------------------------- ### HTML Serialization Example Source: https://jsr.io/%40b-fuze/deno-dom/0.1.56/html-parser/core/src/rcdom.rs Shows how the text-based DOM structure is serialized into an HTML string. ```htmlHello from Deno!
`, "text/html", ); const p = doc.querySelector("p")!; console.log(p.textContent); // "Hello from Deno!" ``` -------------------------------- ### Importing CharacterData Source: https://jsr.io/%40b-fuze/deno-dom/doc/~/CharacterData Examples of how to import the CharacterData symbol from the @b-fuze/deno-dom package. ```APIDOC ```typescript import { CharacterData } from "@b-fuze/deno-dom"; ``` ``` ```APIDOC ```typescript import { CharacterData } from "jsr:@b-fuze/deno-dom"; ``` ``` -------------------------------- ### Importing VisibilityState Source: https://jsr.io/%40b-fuze/deno-dom%400.1.56/doc/~/VisibilityState Examples of how to import the VisibilityState type alias into your Deno or Node.js project. ```APIDOC ## Import Example ### Using deno add ```typescript import { type VisibilityState } from "@b-fuze/deno-dom"; ``` ### Using JSR Specifier ```typescript import { type VisibilityState } from "jsr:@b-fuze/deno-dom"; ``` ``` -------------------------------- ### Importing NodeList Source: https://jsr.io/%40b-fuze/deno-dom%400.1.56/doc/native/~/NodeList Examples of how to import the NodeList symbol from the @b-fuze/deno-dom package using different import syntaxes. ```APIDOC ## Import Symbol ```typescript import { NodeList } from "@b-fuze/deno-dom/native"; ``` or Import directly with a jsr specifier ```typescript import { NodeList } from "jsr:@b-fuze/deno-dom/native"; ``` ``` -------------------------------- ### Import VisibilityState Source: https://jsr.io/%40b-fuze/deno-dom%400.1.56/doc/wasm-noinit/~/VisibilityState Examples of how to import the VisibilityState type alias into your project using deno add or directly with a JSR specifier. ```APIDOC Import symbol ```typescript import { type VisibilityState } from "@b-fuze/deno-dom/wasm-noinit"; ``` or Import directly with a jsr specifier ```typescript import { type VisibilityState } from "jsr:@b-fuze/deno-dom/wasm-noinit"; ``` ``` -------------------------------- ### Text Node Example Source: https://jsr.io/%40b-fuze/deno-dom/0.1.56/html-parser/core/src/rcdom.rs Illustrates the serialization of a simple DOM structure containing a text node. ```text div +- "text node" +- span ``` -------------------------------- ### DocumentType.name Source: https://jsr.io/%40b-fuze/deno-dom/diff/0.1.56...0.1.43/all_symbols Gets the name of the document type. ```APIDOC ## DocumentType.name ### Description Returns the name of the document type (e.g., 'html'). ### Method DocumentType.name(): string ``` -------------------------------- ### Document.title Source: https://jsr.io/%40b-fuze/deno-dom/diff/0.1.56...0.1.43/all_symbols Gets or sets the title of the document. ```APIDOC ## Document.title ### Description Gets or sets the title of the document. ### Method Document.title(): string (getter) or void (setter) ### Response - **Success Response (getter)**: Returns the document's title. - **Success Response (setter)**: Sets the document's title. ``` -------------------------------- ### Build Native Plugin with Make Source: https://jsr.io/%40b-fuze/deno-dom/0.1.56/html-parser/README.md Execute this command to build the native Deno plugin for the Deno DOM project. ```bash make plugin ``` -------------------------------- ### Importing CharacterData Source: https://jsr.io/%40b-fuze/deno-dom%400.1.56/doc/native/~/CharacterData Examples of how to import the CharacterData symbol from the @b-fuze/deno-dom package using different import methods. ```APIDOC ```typescript import { CharacterData } from "@b-fuze/deno-dom/native"; ``` ``` ```APIDOC ```typescript import { CharacterData } from "jsr:@b-fuze/deno-dom/native"; ``` ``` -------------------------------- ### Deno DOM Worker Setup Source: https://jsr.io/%40b-fuze/deno-dom/0.1.56/test/wpt-runner-worker.ts This script sets up a Deno worker to parse HTML and execute JavaScript using the deno-dom library. It configures the worker's global scope to mimic a browser environment and handles messages for test setup. ```typescript ///Hello from Deno!
`, "text/html", ); const p = doc.querySelector("p")!; console.log(p.textContent); // "Hello from Deno!" ``` -------------------------------- ### Access children Source: https://jsr.io/%40b-fuze/deno-dom%400.1.56/doc/~/DocumentFragment.prototype Get an HTMLCollection of the direct children of a DocumentFragment. ```typescript documentFragment.children ``` -------------------------------- ### initParser Source: https://jsr.io/%40b-fuze/deno-dom/diff/0.1.48...0.1.56/all_symbols?full= Initializes the parser. No documentation available. ```APIDOC ## initParser(): PromiseHello from Deno!
`, "text/html", ); const p = doc.querySelector("p")!; console.log(p.textContent); // "Hello from Deno!" ``` -------------------------------- ### Document.hidden Source: https://jsr.io/%40b-fuze/deno-dom/diff/0.1.56...0.1.43/all_symbols Gets a boolean value indicating whether the document is in the background. ```APIDOC ## Document.hidden ### Description Returns a boolean value indicating whether the document is in the background or the tab is inactive. ### Method Document.hidden(): boolean ``` -------------------------------- ### DOMImplementation Constructor Source: https://jsr.io/%40b-fuze/deno-dom/diff/0.1.56...0.1.52/native/~/DOMImplementation?full= Initializes a new instance of the DOMImplementation class. Requires a specific key for instantiation. ```APIDOC ## new DOMImplementation(key: CTOR_KEY) ### Description Constructs a new DOMImplementation object. The `key` parameter is a special internal key required for instantiation, ensuring it's called correctly. ### Parameters * **key** (CTOR_KEY) - Required - A constructor key to ensure proper instantiation. ``` -------------------------------- ### Document.documentURI Source: https://jsr.io/%40b-fuze/deno-dom/diff/0.1.56...0.1.43/all_symbols Gets the document's Uniform Resource Identifier (URI). ```APIDOC ## Document.documentURI ### Description Returns the document's Uniform Resource Identifier (URI). ### Method Document.documentURI(): string ``` -------------------------------- ### textContent Property Source: https://jsr.io/%40b-fuze/deno-dom/diff/0.1.43...0.1.56/wasm-noinit/~/Text.prototype?full= Gets or sets the text content of the Text node. ```APIDOC ## textContent: string ### Description Represents the text content of the node. This property is read-only. ### Property Type string ``` -------------------------------- ### Document Constructor Source: https://jsr.io/%40b-fuze/deno-dom/diff/0.1.56...0.1.46/wasm-noinit/~/Document?full= Initializes a new instance of the Document class. ```APIDOC ## new Document() ### Description Creates a new Document object. ### Method `new Document()` ``` -------------------------------- ### textContent Property Source: https://jsr.io/%40b-fuze/deno-dom/diff/0.1.43...0.1.56/wasm-noinit/~/Comment.prototype?full= Gets or sets the text content of the comment node. ```APIDOC ## textContent ### Description Represents the text content of the comment node. This property is inherited from the CharacterData interface. ### Type string ``` -------------------------------- ### Importing nodesFromString Source: https://jsr.io/%40b-fuze/deno-dom/doc/native/~/nodesFromString Demonstrates how to import the nodesFromString function from the @b-fuze/deno-dom library. ```typescript import { nodesFromString } from "@b-fuze/deno-dom/native"; ``` ```typescript import { nodesFromString } from "jsr:@b-fuze/deno-dom/native"; ``` -------------------------------- ### Importing NodeList Source: https://jsr.io/%40b-fuze/deno-dom/doc/wasm-noinit/~/NodeList Instructions on how to import the NodeList type into your Deno project. ```APIDOC ## Import Symbol ```typescript import { NodeList } from "@b-fuze/deno-dom/wasm-noinit"; ``` or ## Import directly with a jsr specifier ```typescript import { NodeList } from "jsr:@b-fuze/deno-dom/wasm-noinit"; ``` ``` -------------------------------- ### DocumentType SystemId Property Source: https://jsr.io/%40b-fuze/deno-dom/diff/0.1.56...0.1.48/native/~/DocumentType?full= Gets the system identifier of the document type, if specified. ```typescript readonly `systemId`: string ``` -------------------------------- ### DOMImplementation Constructor Source: https://jsr.io/%40b-fuze/deno-dom/diff/0.1.56...0.1.43/wasm-noinit/~/DOMImplementation?full= Initializes a new instance of the DOMImplementation class. Requires a specific constructor key for instantiation. ```APIDOC ## new DOMImplementation(key: CTOR_KEY) ### Description Initializes a new instance of the DOMImplementation class. ### Parameters * **key** (CTOR_KEY) - Required - The constructor key required for instantiation. ``` -------------------------------- ### DocumentType PublicId Property Source: https://jsr.io/%40b-fuze/deno-dom/diff/0.1.56...0.1.48/native/~/DocumentType?full= Gets the public identifier of the document type, if specified. ```typescript readonly `publicId`: string ``` -------------------------------- ### NamedNodeMap Get Attribute Value Method Source: https://jsr.io/%40b-fuze/deno-dom/diff/0.1.47...0.1.56/~/NamedNodeMap?full= Retrieves the value of a specified attribute. ```typescript [getNamedNodeMapValueSym](attribute: string): string | undefined ``` -------------------------------- ### Run WPT tests for deno-dom (WASM) Source: https://jsr.io/%40b-fuze/deno-dom?full= Run Web Platform Tests (WPT) for the WASM backend by first updating the submodule and then appending '-- --wpt' to the test command. ```bash git submodule update --progress --depth 1 deno test --allow-read --allow-net wasm.test.ts -- --wpt ``` -------------------------------- ### Attribute Node Operations Source: https://jsr.io/%40b-fuze/deno-dom/0.1.56/src/dom/element.ts Methods for getting and setting attribute nodes on an element. ```APIDOC ## getAttributeNode(rawName: string): Attr | null ### Description Retrieves an attribute node by its name. ### Method `getAttributeNode` ### Parameters #### Path Parameters - **rawName** (string) - The name of the attribute to retrieve. ### Response #### Success Response (Attr | null) - Returns the `Attr` node if found, otherwise `null`. ``` ```APIDOC ## setAttributeNode(attr: Attr): Attr | null ### Description Sets an attribute node on the element. If an attribute with the same name already exists, it is removed and the old attribute is returned. ### Method `setAttributeNode` ### Parameters #### Path Parameters - **attr** (Attr) - The `Attr` node to set. ### Request Body - **attr** (Attr) - Required - The `Attr` node to set. ### Response #### Success Response (Attr | null) - Returns the old `Attr` node if it existed, otherwise `null`. ### Errors - **TypeError**: If the provided argument does not implement the `Attr` interface. ``` -------------------------------- ### Run Native Tests Source: https://jsr.io/%40b-fuze/deno-dom/0.1.56/README.md Execute native backend tests using the deno test command with unstable and all permissions flags. Note that '-A' grants broad permissions. ```sh deno test --unstable -A native.test.ts ``` -------------------------------- ### Access lastElementChild Source: https://jsr.io/%40b-fuze/deno-dom%400.1.56/doc/~/DocumentFragment.prototype Get the last child element of a DocumentFragment, or null if it has no child elements. ```typescript documentFragment.lastElementChild ``` -------------------------------- ### Importing Element Source: https://jsr.io/%40b-fuze/deno-dom%400.1.56/doc/~/Element Instructions on how to import the Element symbol into your Deno project. ```APIDOC ```typescript import { Element } from "@b-fuze/deno-dom"; ``` or ```typescript import { Element } from "jsr:@b-fuze/deno-dom"; ``` ``` -------------------------------- ### Access firstElementChild Source: https://jsr.io/%40b-fuze/deno-dom%400.1.56/doc/~/DocumentFragment.prototype Get the first child element of a DocumentFragment, or null if it has no child elements. ```typescript documentFragment.firstElementChild ``` -------------------------------- ### textContent Property Source: https://jsr.io/%40b-fuze/deno-dom/diff/0.1.56...0.1.43/native/~/Text.prototype Gets or sets the text content of the Text node. This is a read-only property. ```APIDOC ## textContent: string ### Description Gets the text content of the Text node. This is a read-only property. ### Properties - **textContent** (string) - The text content of the node. ``` -------------------------------- ### initParser Source: https://jsr.io/%40b-fuze/deno-dom/diff/0.1.43...0.1.56/wasm-noinit/~/initParser?full= Initializes the parser. This function returns a Promise that resolves when the parser is ready. ```APIDOC ## initParser ### Description Initializes the parser. This function returns a Promise that resolves when the parser is ready. ### Signature `initParser(): Promise