add data attributes compatibility