Avoid deprecated warning for use of <element>.getAttributeNode()