{"action":"created","issue":{"url":"https://api.github.com/repos/glennjones/microformat-shiv/issues/24","repository_url":"https://api.github.com/repos/glennjones/microformat-shiv","labels_url":"https://api.github.com/repos/glennjones/microformat-shiv/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/glennjones/microformat-shiv/issues/24/comments","events_url":"https://api.github.com/repos/glennjones/microformat-shiv/issues/24/events","html_url":"https://github.com/glennjones/microformat-shiv/issues/24","id":137411486,"number":24,"title":"Parsing tantek.com with h-card filter takes almost 4 minutes","user":{"login":"mkaply","id":345868,"avatar_url":"https://avatars.githubusercontent.com/u/345868?v=3","gravatar_id":"","url":"https://api.github.com/users/mkaply","html_url":"https://github.com/mkaply","followers_url":"https://api.github.com/users/mkaply/followers","following_url":"https://api.github.com/users/mkaply/following{/other_user}","gists_url":"https://api.github.com/users/mkaply/gists{/gist_id}","starred_url":"https://api.github.com/users/mkaply/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkaply/subscriptions","organizations_url":"https://api.github.com/users/mkaply/orgs","repos_url":"https://api.github.com/users/mkaply/repos","events_url":"https://api.github.com/users/mkaply/events{/privacy}","received_events_url":"https://api.github.com/users/mkaply/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-29T23:24:20Z","updated_at":"2016-03-01T19:10:52Z","closed_at":null,"body":"I am using this code:\r\n\r\nvar mfs = Microformats.get({filters: [\"h-card\"], node: doc, document: doc});\r\n\r\nto get the microformats on tantek.com (I'm in an extension). It hangs the browser for almost four minutes. The looping seems to be happening in findFilterNodes.\r\n\r\nIf I change it to:\r\n\r\nvar mfs = Microformats.get({node: doc, document: doc});\r\n\r\nit comes back immediately with an hcard in mfs.items.\r\n\r\nI'm looked through the findFilterNodes code and nothing is jumping out at me..."},"comment":{"url":"https://api.github.com/repos/glennjones/microformat-shiv/issues/comments/190856302","html_url":"https://github.com/glennjones/microformat-shiv/issues/24#issuecomment-190856302","issue_url":"https://api.github.com/repos/glennjones/microformat-shiv/issues/24","id":190856302,"user":{"login":"mkaply","id":345868,"avatar_url":"https://avatars.githubusercontent.com/u/345868?v=3","gravatar_id":"","url":"https://api.github.com/users/mkaply","html_url":"https://github.com/mkaply","followers_url":"https://api.github.com/users/mkaply/followers","following_url":"https://api.github.com/users/mkaply/following{/other_user}","gists_url":"https://api.github.com/users/mkaply/gists{/gist_id}","starred_url":"https://api.github.com/users/mkaply/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkaply/subscriptions","organizations_url":"https://api.github.com/users/mkaply/orgs","repos_url":"https://api.github.com/users/mkaply/repos","events_url":"https://api.github.com/users/mkaply/events{/privacy}","received_events_url":"https://api.github.com/users/mkaply/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T19:10:52Z","updated_at":"2016-03-01T19:10:52Z","body":"I was able to find the problem and fix it:\r\n\r\nhttps://github.com/glennjones/microformat-shiv/pull/25"}}