{"action":"created","issue":{"url":"https://api.github.com/repos/jquery/jquery/issues/4154","repository_url":"https://api.github.com/repos/jquery/jquery","labels_url":"https://api.github.com/repos/jquery/jquery/issues/4154/labels{/name}","comments_url":"https://api.github.com/repos/jquery/jquery/issues/4154/comments","events_url":"https://api.github.com/repos/jquery/jquery/issues/4154/events","html_url":"https://github.com/jquery/jquery/issues/4154","id":349838786,"node_id":"MDU6SXNzdWUzNDk4Mzg3ODY=","number":4154,"title":".is(':hover') doesn't work with multiple elements","user":{"login":"Getfree","id":1877562,"node_id":"MDQ6VXNlcjE4Nzc1NjI=","avatar_url":"https://avatars1.githubusercontent.com/u/1877562?v=4","gravatar_id":"","url":"https://api.github.com/users/Getfree","html_url":"https://github.com/Getfree","followers_url":"https://api.github.com/users/Getfree/followers","following_url":"https://api.github.com/users/Getfree/following{/other_user}","gists_url":"https://api.github.com/users/Getfree/gists{/gist_id}","starred_url":"https://api.github.com/users/Getfree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Getfree/subscriptions","organizations_url":"https://api.github.com/users/Getfree/orgs","repos_url":"https://api.github.com/users/Getfree/repos","events_url":"https://api.github.com/users/Getfree/events{/privacy}","received_events_url":"https://api.github.com/users/Getfree/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-12T19:47:46Z","updated_at":"2018-08-13T18:05:26Z","closed_at":"2018-08-13T16:24:13Z","author_association":"NONE","body":"In this example, the second Javascript line fails.\r\n```html\r\n<div></div>\r\n<span></span>\r\n```\r\n```javascript\r\nconsole.log( $('div').is(':hover') ) ; //this line works fine\r\nconsole.log( $('div, span').is(':hover') ) ; //this line throws an exception\r\n```\r\nJsfiddle here: http://jsfiddle.net/kbohu58w/9/\r\n\r\nThe documentation for `.is()` says that it returns true if at least one of the elements matches the selector.\r\nWhich means `.is(':hover')` should work for multiple elements. But as the example shows, it doesn't."},"comment":{"url":"https://api.github.com/repos/jquery/jquery/issues/comments/412610520","html_url":"https://github.com/jquery/jquery/issues/4154#issuecomment-412610520","issue_url":"https://api.github.com/repos/jquery/jquery/issues/4154","id":412610520,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjYxMDUyMA==","user":{"login":"Getfree","id":1877562,"node_id":"MDQ6VXNlcjE4Nzc1NjI=","avatar_url":"https://avatars1.githubusercontent.com/u/1877562?v=4","gravatar_id":"","url":"https://api.github.com/users/Getfree","html_url":"https://github.com/Getfree","followers_url":"https://api.github.com/users/Getfree/followers","following_url":"https://api.github.com/users/Getfree/following{/other_user}","gists_url":"https://api.github.com/users/Getfree/gists{/gist_id}","starred_url":"https://api.github.com/users/Getfree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Getfree/subscriptions","organizations_url":"https://api.github.com/users/Getfree/orgs","repos_url":"https://api.github.com/users/Getfree/repos","events_url":"https://api.github.com/users/Getfree/events{/privacy}","received_events_url":"https://api.github.com/users/Getfree/received_events","type":"User","site_admin":false},"created_at":"2018-08-13T18:05:26Z","updated_at":"2018-08-13T18:05:26Z","author_association":"NONE","body":"I wouldn't support this in Sizzle at all. Selectors like `:hover:has(div)` wouldn't work, end of story.\r\nHowever, when the selector is entirely supported by `querySelectorAll`, it's trivial to make `:hover` work for multiple elements.\r\n\r\nActually, I'm currently using a customized version of jQuery 2.2.4 which solves that problem. I completely bypass Sizzle if the selector works with `querySelectorAll`.\r\n"}}
{"actor":{"display_login":"Getfree"}}