<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Finding text doesn't work across shadow boundary"
   href="https://bugs.webkit.org/show_bug.cgi?id=158503#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Finding text doesn't work across shadow boundary"
   href="https://bugs.webkit.org/show_bug.cgi?id=158503">bug 158503</a>
              from <span class="vcard"><a class="email" href="mailto:koivisto&#64;iki.fi" title="Antti Koivisto &lt;koivisto&#64;iki.fi&gt;"> <span class="fn">Antti Koivisto</span></a>
</span></b>
        <pre>if (it-&gt;isInShadowTree()) {
   ++it;
   continue; 
}

or

if (it-&gt;shadowRoot()) {
   it.traverseNextSkippingChildren():
   continue;
}

depending what is exactly wanted, basically.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>