<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - jQuery 'is' implementation causes exception to be thrown"
   href="https://bugs.webkit.org/show_bug.cgi?id=151165#c8">Comment # 8</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - jQuery 'is' implementation causes exception to be thrown"
   href="https://bugs.webkit.org/show_bug.cgi?id=151165">bug 151165</a>
              from <span class="vcard"><a class="email" href="mailto:bfulgham&#64;webkit.org" title="Brent Fulgham &lt;bfulgham&#64;webkit.org&gt;"> <span class="fn">Brent Fulgham</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=151165#c6">comment #6</a>)
<span class="quote">&gt; (In reply to <a href="show_bug.cgi?id=151165#c5">comment #5</a>)
&gt; &gt; All major browsers (Tested Safari, Firefox and Chrome) throw when calling:
&gt; &gt; document.body.matches(&quot;:visible&quot;)
&gt; &gt; 
&gt; &gt; They all complain about the selector being invalid.
&gt; 
&gt; Apparently, &quot;:visible&quot; is a jQuery extension and not an actual CSS selector
&gt; so it makes sense that Element.matches(&quot;:visible&quot;) throws. I don't know what
&gt; jQuery's Element.is(&quot;:visible&quot;) does under the scene and which selector is
&gt; actually being passed to WebKit.</span >

I put a breakpoint in the element.matches code. When jQuery calls is(&quot;:visible&quot;), that's exactly what we get. So, we attempt to match the invalid selector &quot;:visible&quot;, and a syntax error is thrown.

This seems like it's just bad coding in jQuery. We do what the specification requires.</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>