Skip to main content

xml_serializer_serialize_to_string

Function xml_serializer_serialize_to_string 

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

serializer.serializeToString(node)。既存の element.outerHTML ゲッター (interp.rs)と同じ DomBridge::get_outer_html を再利用する(DOM 要素 ハンドルでない値/未接続ノードは仕様の詳細な例外分岐を省略し空文字列を返す 簡略実装)。