{"action":"created","issue":{"url":"https://api.github.com/repos/cheeriojs/cheerio/issues/98","repository_url":"https://api.github.com/repos/cheeriojs/cheerio","labels_url":"https://api.github.com/repos/cheeriojs/cheerio/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/cheeriojs/cheerio/issues/98/comments","events_url":"https://api.github.com/repos/cheeriojs/cheerio/issues/98/events","html_url":"https://github.com/cheeriojs/cheerio/issues/98","id":6717252,"number":98,"title":"Is it possible to use cheerio inside a web worker ?","user":{"login":"cc-lam","id":439827,"avatar_url":"https://avatars.githubusercontent.com/u/439827?v=3","gravatar_id":"","url":"https://api.github.com/users/cc-lam","html_url":"https://github.com/cc-lam","followers_url":"https://api.github.com/users/cc-lam/followers","following_url":"https://api.github.com/users/cc-lam/following{/other_user}","gists_url":"https://api.github.com/users/cc-lam/gists{/gist_id}","starred_url":"https://api.github.com/users/cc-lam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cc-lam/subscriptions","organizations_url":"https://api.github.com/users/cc-lam/orgs","repos_url":"https://api.github.com/users/cc-lam/repos","events_url":"https://api.github.com/users/cc-lam/events{/privacy}","received_events_url":"https://api.github.com/users/cc-lam/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2012-09-07T15:45:36Z","updated_at":"2016-04-30T00:26:50Z","closed_at":"2012-09-24T07:14:16Z","body":""},"comment":{"url":"https://api.github.com/repos/cheeriojs/cheerio/issues/comments/215913967","html_url":"https://github.com/cheeriojs/cheerio/issues/98#issuecomment-215913967","issue_url":"https://api.github.com/repos/cheeriojs/cheerio/issues/98","id":215913967,"user":{"login":"gebrits","id":393259,"avatar_url":"https://avatars.githubusercontent.com/u/393259?v=3","gravatar_id":"","url":"https://api.github.com/users/gebrits","html_url":"https://github.com/gebrits","followers_url":"https://api.github.com/users/gebrits/followers","following_url":"https://api.github.com/users/gebrits/following{/other_user}","gists_url":"https://api.github.com/users/gebrits/gists{/gist_id}","starred_url":"https://api.github.com/users/gebrits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gebrits/subscriptions","organizations_url":"https://api.github.com/users/gebrits/orgs","repos_url":"https://api.github.com/users/gebrits/repos","events_url":"https://api.github.com/users/gebrits/events{/privacy}","received_events_url":"https://api.github.com/users/gebrits/received_events","type":"User","site_admin":false},"created_at":"2016-04-30T00:26:50Z","updated_at":"2016-04-30T00:26:50Z","body":"In a webworker HTML is available as a string after doing an ajax-call or\nsomething. You could do cheerio.load(htmlString) similar as jquery(html).\n\nUnfortunately, the latter breaks because among other things `window` and\n`document` aren't unavailable which jquery builds on massively (e.g.:\n`document.querySelector`)\n\n\n\nOn Fri, Apr 29, 2016 at 8:26 PM, Operations Research Engineering Software+ <\nnotifications@github.com> wrote:\n\n> how do you load the DOM/HTML then? cheerio doesn't load the HTML just\n> parses it\n> On Apr 29, 2016 10:49 AM, \"Prakhar Birla\" <notifications@github.com>\n> wrote:\n>\n> > The DOM is not accessible inside a Webworker, hence the need for Cheerio.\n> >\n> > —\n> > You are receiving this because you were mentioned.\n> > Reply to this email directly or view it on GitHub\n> > <https://github.com/cheeriojs/cheerio/issues/98#issuecomment-215828320>\n>\n> >\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly or view it on GitHub\n> <https://github.com/cheeriojs/cheerio/issues/98#issuecomment-215839155>\n>\n"}}