API Reference PureHTML v#0.5.0
View SourceModules
A pure Elixir HTML5 parser with CSS selector querying.
WHATWG encoding sniffing for HTML byte streams.
HTML5 named character references. Generated from https://html.spec.whatwg.org/entities.json
CSS selector querying for PureHTML documents.
Represents a parsed CSS selector and provides matching functionality.
Represents an attribute selector like [href] or [href^="https"].
Parses CSS selector tokens into Selector structs.
Tokenizes CSS selector strings into a stream of tokens.
Converts parsed HTML nodes back to HTML strings.
HTML5 tokenizer that produces a stream of tokens.
Builds an HTML document tree from a tokenizer, following the WHATWG tree construction stage.
The adoption agency algorithm, run for a formatting element end tag (and by
the a and nobr start tag entries), one function per step of the text.
The rules for parsing tokens in foreign content (SVG and MathML), the integration point tests that decide when the tree construction dispatcher applies them, and the insertion of foreign elements with their tag and attribute adjustments.
Shared helpers for the tree builder's insertion modes.
Behavior for HTML5 insertion mode handlers.
HTML5 "after after body" insertion mode.
HTML5 "after after frameset" insertion mode.
HTML5 "after body" insertion mode.
HTML5 "after frameset" insertion mode.
HTML5 "after head" insertion mode.
HTML5 "before head" insertion mode.
HTML5 "before html" insertion mode.
HTML5 "in body" insertion mode.
HTML5 "in caption" insertion mode.
HTML5 "in cell" insertion mode.
HTML5 "in column group" insertion mode.
HTML5 "in frameset" insertion mode.
HTML5 "in head" insertion mode.
HTML5 "in head noscript" insertion mode.
HTML5 "in row" insertion mode.
HTML5 "in table" insertion mode.
HTML5 "in table body" insertion mode.
HTML5 "in table text" insertion mode.
HTML5 "in template" insertion mode.
HTML5 "initial" insertion mode.
HTML5 "text" insertion mode.
The document mode a DOCTYPE token selects.
The customizable select's selectedcontent mirroring, replayed after
parsing.
Parser state for the HTML5 tree construction algorithm.
Mix Tasks
The fixtures under test/fixtures/html5lib/ are html5lib-tests, each
directory at the commit UPSTREAM there pins for it, byte for byte. The
cases whose expectation contradicts the WHATWG text are corrected by the
runners from test/fixtures/corrections/, never by editing these files.