Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fresh/tests/deps.ts>DOMParser

The next-gen web framework.
Extremely Popular
Go to Latest
class DOMParser
implements [globalThis.DOMParser]
Re-export
import { DOMParser } from "https://deno.land/x/fresh@1.7.1/tests/deps.ts";

Methods

parseFromString<MIME extends keyof { text/html: HTMLDocument; image/svg+xml: SVGDocument; text/xml: XMLDocument; }>(
markupLanguage: string,
mimeType: MIME,
globals?: any,
): { text/html: HTMLDocument; image/svg+xml: SVGDocument; text/xml: XMLDocument; }[MIME]