Skip to main content

Crate glory_html

Crate glory_html 

Source
Expand description

Common HTML lowering. No UI/core runtime, DOM, HTTP or window dependencies.

Modules§

display
Shared template-instance data. Static elements have no semantic identities.
template
Experimental sparse HTML display declarations, independent of semantic nodes. Finite template slot kinds and shared HTML profile validation.
view
Shared display data and named slots used by handwritten code and XML macros.

Structs§

HtmlEventOptions
HtmlTextOptions
Mapper
Piece
PlanShape
SelectOptions
Shape
Submission

Enums§

Edit
EditKind
Kind
Op
Part
PreparedOp
Property
TextTag

Constants§

BASE_CSS
FORMAT_VERSION

Traits§

Sink

Functions§

element_namespace
Namespace is determined solely by the mapper’s finite element vocabulary.
escape
escape_script_data
Escape already serialized JSON for an HTML script raw-text body. HTML entity escaping is wrong here: script text does not decode "/<.
normalize
HTML parsing canonicalizes CR/CRLF and NUL. DOM creation must do so too.
preflight
Check descriptor-local HTML constraints without shaping text, allocating styles, reading a host tree or cloning a node’s potentially large value. Creation checks mapping options; patches preserve the existing HTML tag.
preflight_place
HTML ancestor checks over the supplied staged semantic tree, never a host lookup. New children need no subtree allocation; ordinary list moves only walk ancestors. A button destination additionally examines live descendants.
rich_document
Serialize the finite intrinsic editor document; never accepts raw markup.
select_options
Serialize only the finite intrinsic children of a native select.
serialize
shape
shape_in
Resolve only rich editors’ inherited disabled policy from the supplied semantic tree. Ordinary shapes remain descriptor-local. Intrinsic HTML controls already inherit fieldset behavior in their native host.
style