Explain what is Shadow DOM in Polymer.js?

  • Posted by Sharad Jaiswal

    DOM stands for Document Object Model. It is a property of DOM used to building components. One can think of shadow DOM as a scoped sub-tree inside the Polymer.js element. Browsers use Shadow DOM to implement default HTML components such as the <video> tag. The Shadow DOM specification allows the developers to use the same techniques in our own custom elements. DOM is basically an application-programming interface (API) for valid HTML and well-formed XML documents. It defines the logical structure of documents and the way a document is accessed and manipulated. Shadow DOM, in particular, refers to the ability of the browser to include a sub-tree of DOM elements into the rendering of a document, but not into the main document DOM tree.

Please Login or Register to leave a response.

Related Questions

PolymerJs interview questions

What is Polymer.js?

It is an open source JavaScript library, which is chiefly developed by Google. It is mostly used to develop web applicat..

PolymerJs interview questions

What are the features of Polymer.js?

Polymer JS is currently the simplest way to create custom HTML elements for API development because this library is buil..

PolymerJs interview questions

Describe the Architecture Of Polymer.js?

The architecture of Polymer.js is divided into four important layers which are explained below: Native Layer: It repres..