Skip to main content

preflight

Function preflight 

Source
pub fn preflight<'a>(
    node: impl Into<DescriptorView<'a>>,
    patch: Option<&Patch>,
) -> Result<(), Error>
Expand description

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.