4 ms·
> Or is it just a promise that attributes beginning with "data-" will never be used as part of the HTML standard? Just that. Some libraries do build upon that
by masklinn 14y ago
> Or is it just a promise that attributes beginning with "data-" will never be used as part of the HTML standard?
Just that.
Some libraries do build upon that though, e.g. in jQuery, $el.data('key') will fall back on the @data-key attribute if it does not find the key in its internal store.