{"action":"created","issue":{"url":"https://api.github.com/repos/quailjs/quail/issues/286","labels_url":"https://api.github.com/repos/quailjs/quail/issues/286/labels{/name}","comments_url":"https://api.github.com/repos/quailjs/quail/issues/286/comments","events_url":"https://api.github.com/repos/quailjs/quail/issues/286/events","html_url":"https://github.com/quailjs/quail/issues/286","id":48772333,"number":286,"title":"Quail does not respect scope without guideline","user":{"login":"mlewand","id":5353898,"avatar_url":"https://avatars.githubusercontent.com/u/5353898?v=3","gravatar_id":"","url":"https://api.github.com/users/mlewand","html_url":"https://github.com/mlewand","followers_url":"https://api.github.com/users/mlewand/followers","following_url":"https://api.github.com/users/mlewand/following{/other_user}","gists_url":"https://api.github.com/users/mlewand/gists{/gist_id}","starred_url":"https://api.github.com/users/mlewand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlewand/subscriptions","organizations_url":"https://api.github.com/users/mlewand/orgs","repos_url":"https://api.github.com/users/mlewand/repos","events_url":"https://api.github.com/users/mlewand/events{/privacy}","received_events_url":"https://api.github.com/users/mlewand/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-11-14T11:00:54Z","updated_at":"2015-01-05T14:52:19Z","closed_at":null,"body":"# Overview\r\n\r\nIt seems that Quail won't respect the scope given by jQuery selector if we won't provide `guideline` property in config.\r\n\r\nWe can see it with following [sample](https://gist.github.com/mlewand/ffad3a5ddc6bb5cc7751). Just download linked file to your `quail` directory.\r\n\r\n## What it does?\r\n\r\nIt runs the Quail with a following call: `$( '#sampleContent' ).quail( { ... } )`, so that means that Quail should look **only** in #sampleContent element.\r\n\r\nIn given sample we're looking only for `imgHasAlt` test.\r\n\r\nIf no `guideline` property is given in Quail config, all tests are ran. But in this particular case it will run against wole document.\r\n\r\nJust to compare other situation, uncomment the `guideline` property, and it works as expected."},"comment":{"url":"https://api.github.com/repos/quailjs/quail/issues/comments/68717533","html_url":"https://github.com/quailjs/quail/issues/286#issuecomment-68717533","issue_url":"https://api.github.com/repos/quailjs/quail/issues/286","id":68717533,"user":{"login":"theodoreb","id":292904,"avatar_url":"https://avatars.githubusercontent.com/u/292904?v=3","gravatar_id":"","url":"https://api.github.com/users/theodoreb","html_url":"https://github.com/theodoreb","followers_url":"https://api.github.com/users/theodoreb/followers","following_url":"https://api.github.com/users/theodoreb/following{/other_user}","gists_url":"https://api.github.com/users/theodoreb/gists{/gist_id}","starred_url":"https://api.github.com/users/theodoreb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theodoreb/subscriptions","organizations_url":"https://api.github.com/users/theodoreb/orgs","repos_url":"https://api.github.com/users/theodoreb/repos","events_url":"https://api.github.com/users/theodoreb/events{/privacy}","received_events_url":"https://api.github.com/users/theodoreb/received_events","type":"User","site_admin":false},"created_at":"2015-01-05T14:52:19Z","updated_at":"2015-01-05T14:52:19Z","body":"Related to #255 ?"}}