Use the attributes node rather than getAttribute to handle IE10 emulating IE7 (see #28)