FIX: Use getAttribute instead of dataset (PR #10848)

IE10 does not have dataset field.

GitHub