(n: Node)
| 232 | } |
| 233 | |
| 234 | export function shadowRoot(n: Node): ShadowRoot | null { |
| 235 | if (!n || !('shadowRoot' in n)) return null; |
| 236 | return getUntaintedAccessor('Element', n as Element, 'shadowRoot'); |
| 237 | } |
| 238 | |
| 239 | export function querySelector(n: Element, selectors: string): Element | null { |
| 240 | return getUntaintedAccessor('Element', n, 'querySelector')(selectors); |
nothing calls this directly
no test coverage detected