Skip to main content

dom_set_attribute_node

Function dom_set_attribute_node 

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

element.setAttributeNode(attr)attr.name/attr.value を読み取って 通常の setAttribute と同じストアへ反映する。戻り値は仕様上「置換された 旧 Attr ノード(無ければ null)」。