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)。 入力された文字列を指定された MIME タイプ(text/html, text/xml, application/xml, image/svg+xml 等)でパースし、 独立した Document オブジェクト(および XML エラー時は 要素)を返却する。