I think that's an interesting point, and certainly a problem that will grow as data attributes become even more widely used.
Perhaps there's even use for a little database that keeps track of the different data attributes used by different libraries so that authors could easily find out if their name of choice will collide with someone else's, at least as a forewarning to its user about possible incompatibilities.