Update ShadowDOM.md

This commit is contained in:
Angelos Chalaris
2018-10-09 19:16:42 +03:00
committed by GitHub
parent 0ad082fbe2
commit e6311681bb

View File

@ -1,4 +1,5 @@
### Shadow DOM
Shadow DOM allows you to attach hidden DOM (Document Object Model) trees to elements in the normal DOM tree. These subtrees are included in the document rendering, but excluded from the main document DOM tree. A shadow DOM tree will start with a shadow root, to which you can attach any elements you want, just like you would with a regular DOM.
Examples of shadow DOM uses can already be found in the wild: the `<video>` or `<audio>` elements as well as the simple `<input type="range">` element.
Shadow DOM allows you to attach hidden DOM trees to elements in the normal DOM tree, which are included in the document rendering, but excluded from the main document DOM tree.
A shadow DOM tree will start with a shadow root, to which you can attach any elements you want, just like in a regular DOM.
Examples of shadow DOM uses are the `<video>`/`<audio>` elements and the simple `<input type="range">` element.