Skip to main content

parse_html_fragment

Function parse_html_fragment 

Source
pub fn parse_html_fragment(context: &str, html: &str) -> Vec<Node>
Expand description

断片の解析(WHATWG §13.4)。context は文脈要素名(td・svg path など)。文脈要素の子になるノード列を返す。 仕様どおりの木(文字・コメントをそのまま残す)。html5lib / WPT の #document-fragment 試験用。