Skip to main content

Crate index_dom

Crate index_dom 

Source
Expand description

HTML parsing boundary for Index.

Milestone 1 uses scraper to parse hostile, malformed static HTML into a small semantic representation. Terminal rendering concerns stay out of this crate.

Structs§

HtmlButton
Button extracted from a form.
HtmlDocument
Parsed HTML document.
HtmlForm
Form extracted from HTML.
HtmlHeading
Heading extracted from HTML.
HtmlInput
Input extracted from a form.
HtmlLink
Link extracted from HTML.
HtmlMetadata
Metadata extracted from the HTML head.
IndexContentHint
Content-level hints.
IndexDateHint
Date hint entry.
IndexFieldHint
Field hint entry.
IndexFormHint
Form hint entry.
IndexManifest
Parsed index.idx manifest.
IndexRegionHint
Region hint entry.

Enums§

HtmlNode
Semantic HTML content node.
HtmlSectionRole
Semantic HTML region role.
IndexDateStyle
Date style hint.
IndexManifestError
Manifest parsing and validation errors.

Functions§

discover_index_manifest_link_from_html
Discovers a manifest URL from HTML <link rel=\"index-manifest\">.
discover_index_manifest_link_from_http_link_header
Discovers a manifest URL from an HTTP Link header value.
parse_html
Parses HTML into a semantic document representation.
parse_index_manifest
Parses and validates an index.idx manifest body.
well_known_index_manifest_url
Returns the canonical same-origin /.well-known/index.idx candidate URL.