Ah, so the way you get out of it is by just calling:

client.switchToShadowRoot() with no arguments,  sorry, I should’ve mentioned 
it. It will either step into parent shadowRoot (if it’s nested) or into the 
main content.

Yura




From: Hubert Figuière <[email protected]>
Reply: Hubert Figuière <[email protected]>
Date: September 16, 2015 at 11:25:37 AM
To: Yura Zenevich <[email protected]>, dev-gaia <[email protected]>
Subject:  Re: Marionette and shadow DOM  

On 15/09/15 11:27 AM, Yura Zenevich wrote:  
> Hi people of Gaia,  
>  
> A quick update about marionette and the way it operates on elements that are 
> part of the ShadowDOM.  
>  
> Marionette JS client now supports stepping in and out of ShadowRoot similar 
> to how it performs navigation to and from frames. There’s no need any more to 
> run JS script on the marionette server side to manipulate or get something 
> out of ShadowDOM. See example from the integration test:  
>  
> https://github.com/mozilla-b2g/gaia/blob/master/tests/jsmarionette/client/marionette-client/test/integration/client-test.js#L23-L28
>   

That's great.  

I have one major hurdle / question that I don't find a solution in  
reading the inline doc or the source code.  

How do you move out of the shadowroot?  


Hub  
_______________________________________________
dev-fxos mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-fxos

Reply via email to