Ref #12945, IE9/10 still needs safe .getAttribute check.