Support `data-*` attributes with underscores

Fixes #827