Dev.to
7/10/2026

Bypassing Shadow DOMs & Same-Origin Iframes: How I Solved LinkedIn's Massive SDUI Update
Short summary
LinkedIn's migration to Server-Driven UI broke browser extensions that autofill job applications by moving form fields inside same-origin iframes and Shadow DOMs. The author built a recursive tree-walking engine that traverses shadow roots and iframe documents to locate elements invisible to standard query selectors. The solution also required scoping label and aria queries to the correct document context rather than the global document.
- •LinkedIn moved Easy Apply forms into same-origin iframes with Shadow DOM isolation
- •A recursive traversal engine penetrates shadow roots and iframe documents to find elements
- •Label and aria queries must be scoped to the iframe's document, not the parent window
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



