Shadow DOM
Shadow DOM
Shadow DOM allows your browser to include a subtree of DOM elements in the rendering of a document, but not into the main document tree. Shadow DOM works by hiding scoped DOM trees from traditional tree walking functions and accessors (childNodes
, children
, firstChild
, etc.). These accessors return only the elements in your scope.
LogRocket automatically traverses these hidden nodes to support shadow DOM. No work on your end is required.
Note: We do not support closed mode at this time.
Updated almost 5 years ago