24. <template>
⚫ Provide reusable DOMNode!
⚫ Parse but not render!
⚫ Used to use <script type="text/template">!
⚫ Not parse at all
http://www.w3.org/TR/html5/scripting-1.html#the-template-element
28. Shadow DOM
⚫ Hidden nodes in DOM tree!
⚫ Encapsulation!
⚫ Keep component simple!
⚫ Browser already have this feature
http://w3c.github.io/webcomponents/spec/shadow/
48. 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
61. currentScript
⚫ HTML5 API!
⚫ For 3rd party widgets to locate <script> position
http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#dom-document-currentscript