{"action":"created","issue":{"url":"https://api.github.com/repos/pecuniabanking/pecunia-client/issues/430","labels_url":"https://api.github.com/repos/pecuniabanking/pecunia-client/issues/430/labels{/name}","comments_url":"https://api.github.com/repos/pecuniabanking/pecunia-client/issues/430/comments","events_url":"https://api.github.com/repos/pecuniabanking/pecunia-client/issues/430/events","html_url":"https://github.com/pecuniabanking/pecunia-client/issues/430","id":124037403,"number":430,"title":"Plugin API: query selector","user":{"login":"joscha","id":188038,"avatar_url":"https://avatars.githubusercontent.com/u/188038?v=3","gravatar_id":"","url":"https://api.github.com/users/joscha","html_url":"https://github.com/joscha","followers_url":"https://api.github.com/users/joscha/followers","following_url":"https://api.github.com/users/joscha/following{/other_user}","gists_url":"https://api.github.com/users/joscha/gists{/gist_id}","starred_url":"https://api.github.com/users/joscha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joscha/subscriptions","organizations_url":"https://api.github.com/users/joscha/orgs","repos_url":"https://api.github.com/users/joscha/repos","events_url":"https://api.github.com/users/joscha/events{/privacy}","received_events_url":"https://api.github.com/users/joscha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-28T08:57:58Z","updated_at":"2015-12-28T21:35:35Z","closed_at":null,"body":"Hi,\r\n\r\nwhen running this code in a custom plugin:\r\n```javascript\r\nvar doc = webClient.mainFrame.document;\r\n\r\nvar nativeForms = doc.forms;\r\nlogger.logVerbose(nativeForms.length);\r\n\r\nvar forms = doc.querySelectorAll('form');\r\nlogger.logVerbose(forms.length);\r\n\r\nlogger.logVerbose(webClient.stringByEvaluatingJavaScriptFromString(\"document.querySelectorAll('form').length\"));\r\n```\r\nThe output surprisingly is:\r\n```\r\n[Verbose] 1\r\n[Verbose] 0\r\n[Verbose] 0\r\n```\r\n\r\nI looked into the code of the plugin bridge but couldn't find anything that sticks out why the behaviour would be so drastically different. Any hints?"},"comment":{"url":"https://api.github.com/repos/pecuniabanking/pecunia-client/issues/comments/167662279","html_url":"https://github.com/pecuniabanking/pecunia-client/issues/430#issuecomment-167662279","issue_url":"https://api.github.com/repos/pecuniabanking/pecunia-client/issues/430","id":167662279,"user":{"login":"joscha","id":188038,"avatar_url":"https://avatars.githubusercontent.com/u/188038?v=3","gravatar_id":"","url":"https://api.github.com/users/joscha","html_url":"https://github.com/joscha","followers_url":"https://api.github.com/users/joscha/followers","following_url":"https://api.github.com/users/joscha/following{/other_user}","gists_url":"https://api.github.com/users/joscha/gists{/gist_id}","starred_url":"https://api.github.com/users/joscha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joscha/subscriptions","organizations_url":"https://api.github.com/users/joscha/orgs","repos_url":"https://api.github.com/users/joscha/repos","events_url":"https://api.github.com/users/joscha/events{/privacy}","received_events_url":"https://api.github.com/users/joscha/received_events","type":"User","site_admin":false},"created_at":"2015-12-28T21:35:35Z","updated_at":"2015-12-28T21:35:35Z","body":"Yes, it's very strange - I'd like to isolate the problem: do we have tests somewhere for the Plugin API?"}}