VisitDom on page with shadow dom elements

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

VisitDom on page with shadow dom elements

Postby Mayhew » Wed May 30, 2018 1:44 pm

I'm trying to use a CefDOMVisitor to walk all DOM elements of a page and it seems that any element that has shadow DOM elements inside of it will not report having any children. The result is that the visitor doesn't seem to have visibility into the shadow DOM. Is this by design?
Mayhew
Expert
 
Posts: 303
Joined: Mon Apr 18, 2011 8:02 pm

Re: VisitDom on page with shadow dom elements

Postby magreenblatt » Wed May 30, 2018 6:58 pm

You can access the shadow DOM via JavaScript using the Shadow DOM API: https://developers.google.com/web/funda ... /shadowdom
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: VisitDom on page with shadow dom elements

Postby Mayhew » Thu May 31, 2018 2:52 pm

Okay, thanks for the info. We are doing that currently but I was trying to see if I could get some performance gains by doing all of our searching in c++ via the CefDomVisitor. Seems like that is not possible at this point.
Mayhew
Expert
 
Posts: 303
Joined: Mon Apr 18, 2011 8:02 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 54 guests

cron