Answer the question
In order to leave comments, you need to log in
What is the Shadow DOM for?
On Google IO recently, together with Polymer, the idea of the so-called Shadow DOM has been very strongly promoted. Please explain what it is for, what are the advantages and does it make sense to use it at all? Thanks in advance!
Answer the question
In order to leave comments, you need to log in
In short, a convenient way to create isolated and reusable UI components.
Shadow DOM - The shadow model of the document works independently (more or less) from each other. Serves for creating custom UI components (tags). It is also the basis for standard HTML5 elements such as:
<video></video>
<audio></audio>
<input>
and many others.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question