{"action":"created","issue":{"url":"https://api.github.com/repos/jquery/api.jquery.com/issues/988","repository_url":"https://api.github.com/repos/jquery/api.jquery.com","labels_url":"https://api.github.com/repos/jquery/api.jquery.com/issues/988/labels{/name}","comments_url":"https://api.github.com/repos/jquery/api.jquery.com/issues/988/comments","events_url":"https://api.github.com/repos/jquery/api.jquery.com/issues/988/events","html_url":"https://github.com/jquery/api.jquery.com/issues/988","id":181832414,"number":988,"title":"Selector for <a> with block elements inside behaves a little strange - 3.0/3.1","user":{"login":"agavazov","id":1092357,"avatar_url":"https://avatars.githubusercontent.com/u/1092357?v=3","gravatar_id":"","url":"https://api.github.com/users/agavazov","html_url":"https://github.com/agavazov","followers_url":"https://api.github.com/users/agavazov/followers","following_url":"https://api.github.com/users/agavazov/following{/other_user}","gists_url":"https://api.github.com/users/agavazov/gists{/gist_id}","starred_url":"https://api.github.com/users/agavazov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agavazov/subscriptions","organizations_url":"https://api.github.com/users/agavazov/orgs","repos_url":"https://api.github.com/users/agavazov/repos","events_url":"https://api.github.com/users/agavazov/events{/privacy}","received_events_url":"https://api.github.com/users/agavazov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-08T15:39:38Z","updated_at":"2016-10-08T16:20:22Z","closed_at":"2016-10-08T16:20:22Z","body":"```\r\n<a cslas=\"test\">\r\n\t<div>\r\n\t\t<div>\r\n\t\t\t<div>\r\n\t\t\t\t<a>Test 1</a>\r\n\t\t\t\t<a>Test 2</a>\r\n\t\t\t\t<a>Test 3</a>\r\n\t\t\t\t<a>Test 4</a>\r\n\t\t\t\t<a>Test 5</a>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n</a>\r\n\r\n<script>\r\nconsole.log($('.test')); // 4 results\r\n</script>\r\n```\r\nThis must return 1 element, but return 4.\r\n\r\nWhen I use DIV tag instead A everything works fine.\r\n\r\n```\r\n<div cslas=\"test\">\r\n\t<div>\r\n\t\t<div>\r\n\t\t\t<div>\r\n\t\t\t\t<a>Test 1</a>\r\n\t\t\t\t<a>Test 2</a>\r\n\t\t\t\t<a>Test 3</a>\r\n\t\t\t\t<a>Test 4</a>\r\n\t\t\t\t<a>Test 5</a>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n</a>\r\n\r\n<script>\r\nconsole.log($('.test')); // 1 results\r\n</script>\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jquery/api.jquery.com/issues/comments/252433674","html_url":"https://github.com/jquery/api.jquery.com/issues/988#issuecomment-252433674","issue_url":"https://api.github.com/repos/jquery/api.jquery.com/issues/988","id":252433674,"user":{"login":"mgol","id":1758366,"avatar_url":"https://avatars.githubusercontent.com/u/1758366?v=3","gravatar_id":"","url":"https://api.github.com/users/mgol","html_url":"https://github.com/mgol","followers_url":"https://api.github.com/users/mgol/followers","following_url":"https://api.github.com/users/mgol/following{/other_user}","gists_url":"https://api.github.com/users/mgol/gists{/gist_id}","starred_url":"https://api.github.com/users/mgol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgol/subscriptions","organizations_url":"https://api.github.com/users/mgol/orgs","repos_url":"https://api.github.com/users/mgol/repos","events_url":"https://api.github.com/users/mgol/events{/privacy}","received_events_url":"https://api.github.com/users/mgol/received_events","type":"User","site_admin":false},"created_at":"2016-10-08T16:20:22Z","updated_at":"2016-10-08T16:20:22Z","body":"Your HTML is incorrect as the anchor elements can't contain other anchor elements. Look at the DOM after loading the page, it doesn't look like the initial HTML: https://jsbin.com/zefame/edit?html,js,console"}}
{"actor":{"display_login":"mgol"}}