Switch dataset properties to getAttribute() to support IE