Yeah, I didn't now about data-* attributes until about two years ago. I quickly leveraged it to make creating forms with branching less of hassle: instead of relying on complicated state to hide and show different divs, I simply used data-next and data-previous attributes to govern navigation through the tree.