@stopsatgreen
fTs = document.querySelector('fun-times');
fTs.hooray();
p = Object.create(HTMLElement.prototype);
p.hooray = function() {…};
document.registerElement('fun-times',
{ prototype: p });
Slide 27
Slide 27 text
@stopsatgreen
// ES6 approach (not final)
class fTs extends HTMLElement {…}
document.registerElement('fun-times', fTs);
ES6 offers a better way
to do this.
Slide 28
Slide 28 text
@stopsatgreen
Custom Elements.
Approach is sound,
some details to finalise.