allow html5 data attributes with a switch