⚫ Provide reusable DOMNode! ⚫ Parse but not render! ⚫ Used to use !<br/>⚫ Not parse at all<br/>http://www.w3.org/TR/html5/scripting-1.html#the-template-element<br/>
Shadow DOM ⚫ Hidden nodes in DOM tree! ⚫ Encapsulation! ⚫ Keep component simple! ⚫ Browser already have this feature http://w3c.github.io/webcomponents/spec/shadow/
Custom Element Name ⚫ Custom element’s name should have “-”! ⚫ ex: x-button, my-slider! ⚫ With “-”, element don’t know by browser will treat as unresolved element, otherwise it will be unknown element
currentScript ⚫ HTML5 API! ⚫ For 3rd party widgets to locate position<br/>http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#dom-document-currentscript<br/>