Ensure data-* attributes appear in rendered markup

This should resolve issue #283