Remove usage of the deprecated getAttributeNode() unless a support test warrants it. Fixes #12072.