{"action":"created","issue":{"url":"https://api.github.com/repos/dequelabs/axe-core/issues/811","repository_url":"https://api.github.com/repos/dequelabs/axe-core","labels_url":"https://api.github.com/repos/dequelabs/axe-core/issues/811/labels{/name}","comments_url":"https://api.github.com/repos/dequelabs/axe-core/issues/811/comments","events_url":"https://api.github.com/repos/dequelabs/axe-core/issues/811/events","html_url":"https://github.com/dequelabs/axe-core/issues/811","id":309901417,"number":811,"title":"input label false positive inside an iframe","user":{"login":"damien-git","id":7503971,"avatar_url":"https://avatars0.githubusercontent.com/u/7503971?v=4","gravatar_id":"","url":"https://api.github.com/users/damien-git","html_url":"https://github.com/damien-git","followers_url":"https://api.github.com/users/damien-git/followers","following_url":"https://api.github.com/users/damien-git/following{/other_user}","gists_url":"https://api.github.com/users/damien-git/gists{/gist_id}","starred_url":"https://api.github.com/users/damien-git/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damien-git/subscriptions","organizations_url":"https://api.github.com/users/damien-git/orgs","repos_url":"https://api.github.com/users/damien-git/repos","events_url":"https://api.github.com/users/damien-git/events{/privacy}","received_events_url":"https://api.github.com/users/damien-git/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-29T20:57:48Z","updated_at":"2018-03-30T10:10:30Z","closed_at":null,"author_association":"NONE","body":"I am getting a \"Ensures every form element has a label\" false positive with the following files. I tried to reduce that test to a minimum, but using an input id and label for attribute does not change the result. I was using the latest release.\r\n\r\nfile1.html:\r\n```\r\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n    <title>Bug demo file 1</title>\r\n    <script src=\"https://code.jquery.com/jquery-3.3.1.min.js\"></script>\r\n    <script src=\"axe.min.js\"></script>\r\n</head>\r\n<body>\r\n    <iframe id=\"iframe\" src=\"file2.html\"></iframe>\r\n    <script>\r\n        var iframeLoaded = function(e) {\r\n            let iframe = document.getElementById('iframe');\r\n            let iframeDoc = iframe.contentWindow.document;\r\n            let body = iframeDoc.querySelector('body');\r\n            let context = jQuery(body);\r\n            axe.run(context, function(err, results) {\r\n                if (err) throw err;\r\n                console.log(results);\r\n            });\r\n        }\r\n        iframe.addEventListener('load', iframeLoaded, false);\r\n    </script>\r\n</body>\r\n</html>\r\n```\r\n\r\nfile2:\r\n```\r\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n    <title>Bug demo file 2</title>\r\n</head>\r\n<body>\r\n    <form>\r\n        <label>test<input></label>\r\n    </form>\r\n</body>\r\n</html>\r\n```"},"comment":{"url":"https://api.github.com/repos/dequelabs/axe-core/issues/comments/377494757","html_url":"https://github.com/dequelabs/axe-core/issues/811#issuecomment-377494757","issue_url":"https://api.github.com/repos/dequelabs/axe-core/issues/811","id":377494757,"user":{"login":"WilcoFiers","id":530687,"avatar_url":"https://avatars1.githubusercontent.com/u/530687?v=4","gravatar_id":"","url":"https://api.github.com/users/WilcoFiers","html_url":"https://github.com/WilcoFiers","followers_url":"https://api.github.com/users/WilcoFiers/followers","following_url":"https://api.github.com/users/WilcoFiers/following{/other_user}","gists_url":"https://api.github.com/users/WilcoFiers/gists{/gist_id}","starred_url":"https://api.github.com/users/WilcoFiers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WilcoFiers/subscriptions","organizations_url":"https://api.github.com/users/WilcoFiers/orgs","repos_url":"https://api.github.com/users/WilcoFiers/repos","events_url":"https://api.github.com/users/WilcoFiers/events{/privacy}","received_events_url":"https://api.github.com/users/WilcoFiers/received_events","type":"User","site_admin":false},"created_at":"2018-03-30T10:10:30Z","updated_at":"2018-03-30T10:10:30Z","author_association":"CONTRIBUTOR","body":"This example doesn't fail the label rule for me. I also don't see how that could even be possible unless there's something you've overlooked."}}
{"actor":{"display_login":"WilcoFiers"}}