More Related Content Similar to Web Components: What, Why, How, and When (20) More from Peter Gasston (8) Web Components: What, Why, How, and When25. @stopsatgreen
• jQuery : querySelector(), classList
• Modernizr : @supports
• Sass : --custom-properties()
35. @stopsatgreen
proto = Object.create(HTMLElement.prototype);
proto.whip = function(…);
document.registerElement('indiana-jones',
{ prototype: proto });
indy = document.querySelector('indiana-jones');
indy.whip();
52. Browser Custom Elements Shadow DOM HTML Imports Template
@stopsatgreen
✓ ✓ ✓
✓ ✓ ✓
Who knows?
‘Under consideration’
✓
✓
✓
http://jonrimmer.github.io/are-we-componentized-yet/
54. Polymer Core Bosonic
Platform.js (polyfill)
Core Elements
Brick
Paper Elements
Elements
Standard
polymer-project.org | brick.mozilla.io | bosonic.github.io | webcomponents.org