Practice Lab

Shadow DOM

Some elements keep their inside in a separate, hidden tree called a shadow root. You can see the inside on the page, but a normal findElement cannot reach it.

1. An open shadow root (with another one inside)

2. A closed shadow root