Slide 6
Slide 6 text
Web Components
●
Custom elements
○
Technology responsible for creating our own elements, just like the native ones.
●
HTML imports
○
HTML Imports are a way to include and reuse HTML documents in other HTML documents.
●
Templates
○
The tag, which allows documents to contain inert chunks of DOM
●
Shadow DOM
○
Technology responsible for scoping our element and not letting JS/CSS overflow out of it, so it is
enclosed, separate, reusable block.
○
This specification describes a method of establishing and maintaining functional boundaries
between DOM trees and how these trees interact with each other within a document, thus enabling
better functional encapsulation within the DOM.
○
Encapsulate DOM subtrees and the associated CSS.
6