{"action":"created","issue":{"url":"https://api.github.com/repos/ui4j/ui4j/issues/43","labels_url":"https://api.github.com/repos/ui4j/ui4j/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/ui4j/ui4j/issues/43/comments","events_url":"https://api.github.com/repos/ui4j/ui4j/issues/43/events","html_url":"https://github.com/ui4j/ui4j/issues/43","id":85940049,"number":43,"title":"Form.clear broken","user":{"login":"hstaudacher","id":289648,"avatar_url":"https://avatars.githubusercontent.com/u/289648?v=3","gravatar_id":"","url":"https://api.github.com/users/hstaudacher","html_url":"https://github.com/hstaudacher","followers_url":"https://api.github.com/users/hstaudacher/followers","following_url":"https://api.github.com/users/hstaudacher/following{/other_user}","gists_url":"https://api.github.com/users/hstaudacher/gists{/gist_id}","starred_url":"https://api.github.com/users/hstaudacher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hstaudacher/subscriptions","organizations_url":"https://api.github.com/users/hstaudacher/orgs","repos_url":"https://api.github.com/users/hstaudacher/repos","events_url":"https://api.github.com/users/hstaudacher/events{/privacy}","received_events_url":"https://api.github.com/users/hstaudacher/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ui4j/ui4j/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"ui4j","id":8233839,"avatar_url":"https://avatars.githubusercontent.com/u/8233839?v=3","gravatar_id":"","url":"https://api.github.com/users/ui4j","html_url":"https://github.com/ui4j","followers_url":"https://api.github.com/users/ui4j/followers","following_url":"https://api.github.com/users/ui4j/following{/other_user}","gists_url":"https://api.github.com/users/ui4j/gists{/gist_id}","starred_url":"https://api.github.com/users/ui4j/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ui4j/subscriptions","organizations_url":"https://api.github.com/users/ui4j/orgs","repos_url":"https://api.github.com/users/ui4j/repos","events_url":"https://api.github.com/users/ui4j/events{/privacy}","received_events_url":"https://api.github.com/users/ui4j/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/ui4j/ui4j/milestones/6","html_url":"https://github.com/ui4j/ui4j/milestones/2.0.0","labels_url":"https://api.github.com/repos/ui4j/ui4j/milestones/6/labels","id":1136700,"number":6,"title":"2.0.0","description":null,"creator":{"login":"ui4j","id":8233839,"avatar_url":"https://avatars.githubusercontent.com/u/8233839?v=3","gravatar_id":"","url":"https://api.github.com/users/ui4j","html_url":"https://github.com/ui4j","followers_url":"https://api.github.com/users/ui4j/followers","following_url":"https://api.github.com/users/ui4j/following{/other_user}","gists_url":"https://api.github.com/users/ui4j/gists{/gist_id}","starred_url":"https://api.github.com/users/ui4j/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ui4j/subscriptions","organizations_url":"https://api.github.com/users/ui4j/orgs","repos_url":"https://api.github.com/users/ui4j/repos","events_url":"https://api.github.com/users/ui4j/events{/privacy}","received_events_url":"https://api.github.com/users/ui4j/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":12,"state":"open","created_at":"2015-05-27T19:24:01Z","updated_at":"2015-06-08T09:43:05Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-06-07T20:40:03Z","updated_at":"2015-06-08T09:44:47Z","closed_at":"2015-06-08T09:27:10Z","body":"It seems that the last commits broke `Form.clear`. My tests are red now and they were green before the last pull."},"comment":{"url":"https://api.github.com/repos/ui4j/ui4j/issues/comments/109932595","html_url":"https://github.com/ui4j/ui4j/issues/43#issuecomment-109932595","issue_url":"https://api.github.com/repos/ui4j/ui4j/issues/43","id":109932595,"user":{"login":"hstaudacher","id":289648,"avatar_url":"https://avatars.githubusercontent.com/u/289648?v=3","gravatar_id":"","url":"https://api.github.com/users/hstaudacher","html_url":"https://github.com/hstaudacher","followers_url":"https://api.github.com/users/hstaudacher/followers","following_url":"https://api.github.com/users/hstaudacher/following{/other_user}","gists_url":"https://api.github.com/users/hstaudacher/gists{/gist_id}","starred_url":"https://api.github.com/users/hstaudacher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hstaudacher/subscriptions","organizations_url":"https://api.github.com/users/hstaudacher/orgs","repos_url":"https://api.github.com/users/hstaudacher/repos","events_url":"https://api.github.com/users/hstaudacher/events{/privacy}","received_events_url":"https://api.github.com/users/hstaudacher/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T09:44:47Z","updated_at":"2015-06-08T09:44:47Z","body":"It's not fixed for me. This is the html form:\r\n\r\n```html\r\n    <form id=\"form\">\r\n      <input type=\"text\" name=\"a\" />\r\n      <input type=\"text\" name=\"b\" />\r\n      <input type=\"submit\" name=\"submit\" value=\"Submit\" />\r\n    </form>\r\n```\r\n\r\nThis is the test case (maybe you need to adapt to compile against ui4j):\r\n\r\n```java\r\n  @Test\r\n  public void testClearsForm() {\r\n    form.getElement().getDocument().query( \"input[name='a']\" ).get().setValue( \"foo\" );\r\n    form.getElement().getDocument().query( \"input[name='b']\" ).get().setValue( \"bar\" );\r\n\r\n    form.clear();\r\n\r\n    assertThat( form.getElement().getDocument().query( \"input[name='a']\" ).get().getValue().isPresent() ).isFalse();\r\n    assertThat( form.getElement().getDocument().query( \"input[name='b']\" ).get().getValue().isPresent() ).isFalse();\r\n  }\r\n```"}}