Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

access shadow root element

*The HTML
<div id="host"></div>

*The JS
var host = document.querySelector('#host');
var root = host.createShadowRoot();
Source by www.oreilly.com #
 
PREVIOUS NEXT
Tagged: #access #shadow #root #element
ADD COMMENT
Topic
Name
6+3 =