kotlin-stdlib / org.w3c.dom / Element / setAttributeNode setAttributeNode JS 1.1 fun setAttributeNode ( attr : Attr ) : Attr ? (source)