[Webkit-unassigned] [Bug 151165] jQuery 'is' implementation causes exception to be thrown

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 11 17:10:43 PST 2015


https://bugs.webkit.org/show_bug.cgi?id=151165

--- Comment #8 from Brent Fulgham <bfulgham at webkit.org> ---
(In reply to comment #6)
> (In reply to comment #5)
> > All major browsers (Tested Safari, Firefox and Chrome) throw when calling:
> > document.body.matches(":visible")
> > 
> > They all complain about the selector being invalid.
> 
> Apparently, ":visible" is a jQuery extension and not an actual CSS selector
> so it makes sense that Element.matches(":visible") throws. I don't know what
> jQuery's Element.is(":visible") does under the scene and which selector is
> actually being passed to WebKit.

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

This seems like it's just bad coding in jQuery. We do what the specification requires.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151112/d8889ef6/attachment.html>


More information about the webkit-unassigned mailing list