Skip to main content

Module check

Module check 

Source
Expand description

Structural and accessibility checks over a parsed template tree — the questions a template can answer before any LOGOS expression inside it is parsed.

Errors are shapes that cannot mean anything: content beside {block}s in a view that {extends} a layout, a block name defined twice, {children} twice, bind on something that is not a form control, class: on a component (a component takes props, not classes). Warnings are the accessibility mistakes that ship far too often — an image with no alt, a button that announces nothing, a form control with no label, a link with nowhere to go. Every finding carries the span and a message that names the fix.

Structs§

Finding

Enums§

FindingKind
ParserRewrite
What a browser’s HTML parser does to markup it does not keep as written — see FindingKind::RewrittenByParser.
Severity

Functions§

check
Run every check over a template tree.
first_non_head_element
The first element in nodes that does not belong in a document’s head, with its span — None when every element is head-legal.