> Are you suggesting a rework of the existing code is in order, or is this an alternative implementation that doesn't use a the data attribute?

The latter.  I looked at the string concatenation involved in `click`, decided that it wasn't necessary, and presented a proposal to substitute my own reality.  I'm wondering if that proposal actually works.