Fix attr() problems in IE with attribute nodes. Followup to commit b50f41a2.