Skip to content


JavaScript library to help modern web applications with accessibility concerns by making accessibility simpler


Determines if an element is the descendant of a ShadowRoot.

# Usage

var element = document.getElementById('victim');
var isShadowed =;

# Arguments

Name Type Default Description
element HTMLElement required The Element to test.

# Returns

Boolean, true if the element is hosted in a ShadowRoot.

# Throws

TypeError if element argument is not of type HTMLElement.

# Notes

Requires ShadowDOM support.

# Contributing