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§
Enums§
- Finding
Kind - Parser
Rewrite - 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
nodesthat does not belong in a document’s head, with its span —Nonewhen every element is head-legal.