Read data-attributes instead of element contents