GDG.</p> </template> var MyElementPrototype = Object.create(HTMLElement.prototype); MyElementPrototype.createdCallback = function() { var shadow = this.createShadowRoot(); var template = document.querySelector('template'); var clone = document.importNode(template.content, true); shadow.appendChild(clone); }; var MyElement = document.registerElement('my-‐element', { prototype: MyElementPrototype });