The setAttributeNode MethodThe setAttributeNode method assigns an attribute node to a node. You can see the support for this method in Table 6.49. Table 6.49. The setAttributeNode Method
The setAttributeNode is the W3C analog to the setAttribute method discussed in the preceding section. To assign an attribute node to another node capable of supporting attributes, you just pass that attribute node to this method: elementNode.setAttributeNode(attributeNode) |