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

x/html_parser/src/mod.ts>ElementType.ElementType

Port of fb55/htmlparser2 for Deno
Latest
variable ElementType.ElementType
import { ElementType } from "https://deno.land/x/html_parser@v0.1.3/src/mod.ts";
const { ElementType } = ElementType;

Type for the root element of a document

function ElementType.ElementType
import { ElementType } from "https://deno.land/x/html_parser@v0.1.3/src/mod.ts";
const { ElementType } = ElementType;

Tests whether an element is a tag or not.

Parameters

elem: { type: ElementType; }

Element to test

Returns

boolean
enum ElementType.ElementType
import { ElementType } from "https://deno.land/x/html_parser@v0.1.3/src/mod.ts";
const { ElementType } = ElementType;

Types of elements found in htmlparser2's DOM

Members

CDATA = "cdata"

Type for

Comment = "comment"

Type for

Directive = "directive"

Type for

Doctype = "doctype"

Type for <!doctype ...>

Root = "root"

Type for the root element of a document

Script = "script"

Type for tags

Style = "style"

Type for tags

Tag = "tag"

Type for Any tag

Text = "text"

Type for Text

Members

CDATA = "cdata"

Type for

Comment = "comment"

Type for

Directive = "directive"

Type for

Doctype = "doctype"

Type for <!doctype ...>

Root = "root"

Type for the root element of a document

Script = "script"

Type for tags

Style = "style"

Type for tags

Tag = "tag"

Type for Any tag

Text = "text"

Type for Text