Skip to main content

dom_parser_parse_from_string

Function dom_parser_parse_from_string 

Source
pub fn dom_parser_parse_from_string(
    it: &mut Interp,
    _this: Value,
    args: &[Value],
) -> Result<Value, Value>
Expand description

DOMParser.prototype.parseFromString(str, type) (DOM Parsing and Serialization §4.1)。 入力された HTML 文字列を parse_html でパースし、DomBridge へ組み込んで文書ノードを返却する。