{"action":"created","issue":{"url":"https://api.github.com/repos/PuerkitoBio/goquery/issues/139","repository_url":"https://api.github.com/repos/PuerkitoBio/goquery","labels_url":"https://api.github.com/repos/PuerkitoBio/goquery/issues/139/labels{/name}","comments_url":"https://api.github.com/repos/PuerkitoBio/goquery/issues/139/comments","events_url":"https://api.github.com/repos/PuerkitoBio/goquery/issues/139/events","html_url":"https://github.com/PuerkitoBio/goquery/issues/139","id":193390727,"number":139,"title":"<noscript> causes selector to fail","user":{"login":"nathan-osman","id":1253444,"avatar_url":"https://avatars.githubusercontent.com/u/1253444?v=3","gravatar_id":"","url":"https://api.github.com/users/nathan-osman","html_url":"https://github.com/nathan-osman","followers_url":"https://api.github.com/users/nathan-osman/followers","following_url":"https://api.github.com/users/nathan-osman/following{/other_user}","gists_url":"https://api.github.com/users/nathan-osman/gists{/gist_id}","starred_url":"https://api.github.com/users/nathan-osman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathan-osman/subscriptions","organizations_url":"https://api.github.com/users/nathan-osman/orgs","repos_url":"https://api.github.com/users/nathan-osman/repos","events_url":"https://api.github.com/users/nathan-osman/events{/privacy}","received_events_url":"https://api.github.com/users/nathan-osman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-05T01:03:07Z","updated_at":"2017-01-08T04:47:07Z","closed_at":null,"body":"Consider the following program:\r\n\r\n```go\r\npackage main\r\n\r\nimport (\r\n\t\"fmt\"\r\n\t\"strings\"\r\n\r\n\t\"github.com/PuerkitoBio/goquery\"\r\n)\r\n\r\nconst data = `<noscript><a href=\"http://example.org\">click this link</a></noscript>`\r\n\r\nfunc main() {\r\n\td, err := goquery.NewDocumentFromReader(strings.NewReader(data))\r\n\tif err != nil {\r\n\t\tfmt.Println(err)\r\n\t\treturn\r\n\t}\r\n\ta, ok := d.Find(\"noscript a\").Attr(\"href\")\r\n\tfmt.Printf(\"URL: '%s', %t\\n\", a, ok)\r\n}\r\n```\r\n\r\nThe expected output is:\r\n\r\n    URL: 'http://example.org', true\r\n\r\nBut instead the output is:\r\n\r\n    URL: '', false\r\n\r\nChanging `noscript` to `div` in both the document and selector causes the expected output, so the problem seems to affect only `<noscript>` elements."},"comment":{"url":"https://api.github.com/repos/PuerkitoBio/goquery/issues/comments/271129696","html_url":"https://github.com/PuerkitoBio/goquery/issues/139#issuecomment-271129696","issue_url":"https://api.github.com/repos/PuerkitoBio/goquery/issues/139","id":271129696,"user":{"login":"Arnold1","id":3844226,"avatar_url":"https://avatars.githubusercontent.com/u/3844226?v=3","gravatar_id":"","url":"https://api.github.com/users/Arnold1","html_url":"https://github.com/Arnold1","followers_url":"https://api.github.com/users/Arnold1/followers","following_url":"https://api.github.com/users/Arnold1/following{/other_user}","gists_url":"https://api.github.com/users/Arnold1/gists{/gist_id}","starred_url":"https://api.github.com/users/Arnold1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arnold1/subscriptions","organizations_url":"https://api.github.com/users/Arnold1/orgs","repos_url":"https://api.github.com/users/Arnold1/repos","events_url":"https://api.github.com/users/Arnold1/events{/privacy}","received_events_url":"https://api.github.com/users/Arnold1/received_events","type":"User","site_admin":false},"created_at":"2017-01-08T04:47:07Z","updated_at":"2017-01-08T04:47:07Z","body":"just noticed the same issue :)"}}
{"actor":{"display_login":"Arnold1"}}