Explain what is Shadow DOM in Polymer.js?

devquora
devquora

Posted On: Feb 22, 2018

 

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.

    Related Questions

    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..