Supported HTML

← Back to index

Weva ships a hand-rolled HTML parser for an authored-input subset — no HTML5 error-recovery surface. The parser produces a DOM of Node, Element, TextNode, and Document types. Anything outside the subset below is either ignored or fails loudly rather than silently miscomputing.

Elements

CategoryElements
Structuraldiv, section, header, footer, nav, main, article, aside
Textp, span, h1h6, strong, em, b, i, u, code, small, br, hr
Inline linka
Listsul, ol, li
Formbutton, input, select, option, textarea, label, form
Mediaimg
Tablestable, thead, tbody, tfoot, tr, td, th, col, colgroup, caption
Disclosure / dialogdetails, summary, dialog
Compositiontemplate, slot, <template src="..."> imports

<head>, <title>, <meta>, and <link> are recognized in the document head; <link rel="stylesheet"> pulls in a stylesheet by relative path.

Form controls

<input> supports these type= values: text, password, email, number, search, tel, url, checkbox, radio, range, hidden. The <form> element groups controls and fires on-submit — there are no real HTTP submit semantics. See AuthoringGuide.md §4 for the per-control behavior table.

Tables, details/summary, dialog

These are implemented with the limitations tracked in the conformance docs. Runtime tables exist (including border-collapse: collapse winner resolution), but advanced fragmentation and some collapsed-border painting are scoped out of v1. <details>/<summary> get the UA-stylesheet [open] toggle visuals; <dialog> supports modal/non-modal via DialogElement.ShowModal().

Deliberately omitted

iframe, script, top-level <style> blocks (inline <style> inside a <template> is parsed but not yet wired into the cascade), canvas, svg, audio, video. There is no JavaScript engine; interactivity comes from C# controller binding, not DOM script.

Attributes

Document structure rules

A built-in user-agent stylesheet supplies default displays (block vs. inline), heading sizes, link color, list markers, and the hidden attribute, matching Chrome's UA defaults where they apply.


Next: Supported CSS