Skip to main content

emit_html_attrs_node

Function emit_html_attrs_node 

Source
pub fn emit_html_attrs_node(builder: &mut impl InlineSink, attrs_text: &str)
Expand description

Emit a structural HTML_ATTRS node, wrapping the source bytes of each recognized HTML attribute in ATTR_ID / ATTR_CLASS / ATTR_KEY_VALUE children (bare values — HTML has no #/. marker). Bytes between/around components (names, =, quotes, whitespace, /) become gap tokens, so node.text() is exactly attrs_text. An unrecognized/empty body falls back to a single opaque TEXT token.