2 ms·
A lot of the innovation happening in client-side JavaScript right now is based on HTML5 technologies like Web Workers, "data-" attributes, Canvas, Local Storage
by joshuacc 14y ago
A lot of the innovation happening in client-side JavaScript right now is based on HTML5 technologies like Web Workers, "data-" attributes, Canvas, Local Storage, etc. If you read through HTML5Rocks.com, you'll see that many of the things it talks about are new APIs available to JS in the browser.
- statictype 14y agoWhat innovations were possible with the "data-" attributes? As far as I know, they just provide a standardized way of naming custom attributes. I've been using custom attributes in html tags for unobtrusive javascript before I knew the data- attributes existed. Do they provide any extra functionality as such (like a faster/optimized querying api) ? Or is it just a promise that attributes beginning with "data-" will never be used as part of the HTML standard?
- 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.