PureHTML.TreeBuilder.Quirks (PureHTML v0.5.0)

View Source

The document mode a DOCTYPE token selects.

The lists are the initial insertion mode's, fetched from the standard on 2026-09-15. Identifiers compare ASCII case-insensitively, and an empty system identifier is not missing for the quirks-only-without-system rows.

Summary

Functions

The mode for a DOCTYPE token's name, public identifier, system identifier, and force-quirks flag. Missing identifiers are nil.

Types

mode()

@type mode() :: :quirks | :limited_quirks | :no_quirks

Functions

mode(arg1, public_id, system_id, force_quirks)

@spec mode(String.t() | nil, String.t() | nil, String.t() | nil, boolean()) :: mode()

The mode for a DOCTYPE token's name, public identifier, system identifier, and force-quirks flag. Missing identifiers are nil.