Created attachment 226837 [details] screen shot lists child div of <input> when shadow DOM display is not toggled Web Inspector: AXI: AX Children exposes Shadow DOM nodes even when shadow DOM display is not enabled. Not yet sure if this is "right" or "wrong" but if we display this, we should probably make it more clear what's happening. Otherwise we should only display shadow DOM AX children when the shadow DOM display is enabled. See screen shot.
<rdar://problem/16337244>
Good find. There is WebInspector.showShadowDOMSetting.value and node.isInShadowTree(). So you can choose to hide shadow nodes in the sidebar if the shadow DOM is not shown. You can also add an event listener on the setting, to update the UI if the show shadow dom setting toggles: WebInspector.showShadowDOMSetting.addEventListener(WebInspector.Setting.Event.Changed, callback, thisObject);