News for hackers. Stuff that matters.
Re:Declarative Shadow DOM by sh4rks on Tuesday February 14, 2023 @04:19AM (#34787169)
Shadow roots are a nightmare when doing any kind of Web scraping or UI integration testing
Re:Declarative Shadow DOM by mmis1000 on Tuesday February 14, 2023 @04:33AM (#34787240)
If you own the browser, you can just nuke the `mode` option of `attachShadow` method before page itself runs. And bang, you can access to whatever you want now. So it isn't really a big deal if you are scraping or doing UI testing. Because the one runs first has the power to do whatever you want in js (Except for some primitive specifically protected in browser).