{"action":"created","comment":{"url":"https://api.github.com/repos/facebook/react/pulls/comments/32366372","id":32366372,"diff_hunk":"@@ -618,6 +618,22 @@ describe('ReactDOMComponent', function() {\n       expect(SimpleEventPlugin.didPutListener.mock.calls.length).toBe(2);\n       expect(SimpleEventPlugin.willDeleteListener.mock.calls.length).toBe(1);\n     });\n+\n+    it('should warn for children on void elements', function() {\n+      spyOn(console, 'error');\n+      var X = React.createClass({\n+        render: function() {\n+          return <input>moo</input>;\n+        }","path":"src/renderers/dom/shared/__tests__/ReactDOMComponent-test.js","position":10,"original_position":10,"commit_id":"2bbde9fe1b3a644f0711fdfaaa4a3299d2b297f9","original_commit_id":"2bbde9fe1b3a644f0711fdfaaa4a3299d2b297f9","user":{"login":"PiPeep","id":180404,"avatar_url":"https://avatars.githubusercontent.com/u/180404?v=3","gravatar_id":"","url":"https://api.github.com/users/PiPeep","html_url":"https://github.com/PiPeep","followers_url":"https://api.github.com/users/PiPeep/followers","following_url":"https://api.github.com/users/PiPeep/following{/other_user}","gists_url":"https://api.github.com/users/PiPeep/gists{/gist_id}","starred_url":"https://api.github.com/users/PiPeep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PiPeep/subscriptions","organizations_url":"https://api.github.com/users/PiPeep/orgs","repos_url":"https://api.github.com/users/PiPeep/repos","events_url":"https://api.github.com/users/PiPeep/events{/privacy}","received_events_url":"https://api.github.com/users/PiPeep/received_events","type":"User","site_admin":false},"body":"On a related note, I'd kind of like to add an exception for objects and arrays nested immediately within another object or array. It's quite common to have an array of a single element, and to end up with syntax like:\r\n\r\n```js\r\nvar config = {\r\n  rules: [{\r\n    foo: true,\r\n    bar: false,\r\n  }],\r\n}\r\n```","created_at":"2015-06-13T01:37:28Z","updated_at":"2015-06-13T01:37:28Z","html_url":"https://github.com/facebook/react/pull/4114#discussion_r32366372","pull_request_url":"https://api.github.com/repos/facebook/react/pulls/4114","_links":{"self":{"href":"https://api.github.com/repos/facebook/react/pulls/comments/32366372"},"html":{"href":"https://github.com/facebook/react/pull/4114#discussion_r32366372"},"pull_request":{"href":"https://api.github.com/repos/facebook/react/pulls/4114"}}},"pull_request":{"url":"https://api.github.com/repos/facebook/react/pulls/4114","id":37613183,"html_url":"https://github.com/facebook/react/pull/4114","diff_url":"https://github.com/facebook/react/pull/4114.diff","patch_url":"https://github.com/facebook/react/pull/4114.patch","issue_url":"https://api.github.com/repos/facebook/react/issues/4114","number":4114,"state":"open","locked":false,"title":"Add owner to void element children warning","user":{"login":"spicyj","id":6820,"avatar_url":"https://avatars.githubusercontent.com/u/6820?v=3","gravatar_id":"","url":"https://api.github.com/users/spicyj","html_url":"https://github.com/spicyj","followers_url":"https://api.github.com/users/spicyj/followers","following_url":"https://api.github.com/users/spicyj/following{/other_user}","gists_url":"https://api.github.com/users/spicyj/gists{/gist_id}","starred_url":"https://api.github.com/users/spicyj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spicyj/subscriptions","organizations_url":"https://api.github.com/users/spicyj/orgs","repos_url":"https://api.github.com/users/spicyj/repos","events_url":"https://api.github.com/users/spicyj/events{/privacy}","received_events_url":"https://api.github.com/users/spicyj/received_events","type":"User","site_admin":false},"body":null,"created_at":"2015-06-12T23:29:23Z","updated_at":"2015-06-13T01:37:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"59555d5bd2c0ba42f63b7e4bc005ce86dd8d4686","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/facebook/react/pulls/4114/commits","review_comments_url":"https://api.github.com/repos/facebook/react/pulls/4114/comments","review_comment_url":"https://api.github.com/repos/facebook/react/pulls/comments{/number}","comments_url":"https://api.github.com/repos/facebook/react/issues/4114/comments","statuses_url":"https://api.github.com/repos/facebook/react/statuses/2bbde9fe1b3a644f0711fdfaaa4a3299d2b297f9","head":{"label":"spicyj:void-warn","ref":"void-warn","sha":"2bbde9fe1b3a644f0711fdfaaa4a3299d2b297f9","user":{"login":"spicyj","id":6820,"avatar_url":"https://avatars.githubusercontent.com/u/6820?v=3","gravatar_id":"","url":"https://api.github.com/users/spicyj","html_url":"https://github.com/spicyj","followers_url":"https://api.github.com/users/spicyj/followers","following_url":"https://api.github.com/users/spicyj/following{/other_user}","gists_url":"https://api.github.com/users/spicyj/gists{/gist_id}","starred_url":"https://api.github.com/users/spicyj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spicyj/subscriptions","organizations_url":"https://api.github.com/users/spicyj/orgs","repos_url":"https://api.github.com/users/spicyj/repos","events_url":"https://api.github.com/users/spicyj/events{/privacy}","received_events_url":"https://api.github.com/users/spicyj/received_events","type":"User","site_admin":false},"repo":{"id":10395087,"name":"react","full_name":"spicyj/react","owner":{"login":"spicyj","id":6820,"avatar_url":"https://avatars.githubusercontent.com/u/6820?v=3","gravatar_id":"","url":"https://api.github.com/users/spicyj","html_url":"https://github.com/spicyj","followers_url":"https://api.github.com/users/spicyj/followers","following_url":"https://api.github.com/users/spicyj/following{/other_user}","gists_url":"https://api.github.com/users/spicyj/gists{/gist_id}","starred_url":"https://api.github.com/users/spicyj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spicyj/subscriptions","organizations_url":"https://api.github.com/users/spicyj/orgs","repos_url":"https://api.github.com/users/spicyj/repos","events_url":"https://api.github.com/users/spicyj/events{/privacy}","received_events_url":"https://api.github.com/users/spicyj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/spicyj/react","description":"React is a JavaScript library for building user interfaces.","fork":true,"url":"https://api.github.com/repos/spicyj/react","forks_url":"https://api.github.com/repos/spicyj/react/forks","keys_url":"https://api.github.com/repos/spicyj/react/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spicyj/react/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spicyj/react/teams","hooks_url":"https://api.github.com/repos/spicyj/react/hooks","issue_events_url":"https://api.github.com/repos/spicyj/react/issues/events{/number}","events_url":"https://api.github.com/repos/spicyj/react/events","assignees_url":"https://api.github.com/repos/spicyj/react/assignees{/user}","branches_url":"https://api.github.com/repos/spicyj/react/branches{/branch}","tags_url":"https://api.github.com/repos/spicyj/react/tags","blobs_url":"https://api.github.com/repos/spicyj/react/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spicyj/react/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spicyj/react/git/refs{/sha}","trees_url":"https://api.github.com/repos/spicyj/react/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spicyj/react/statuses/{sha}","languages_url":"https://api.github.com/repos/spicyj/react/languages","stargazers_url":"https://api.github.com/repos/spicyj/react/stargazers","contributors_url":"https://api.github.com/repos/spicyj/react/contributors","subscribers_url":"https://api.github.com/repos/spicyj/react/subscribers","subscription_url":"https://api.github.com/repos/spicyj/react/subscription","commits_url":"https://api.github.com/repos/spicyj/react/commits{/sha}","git_commits_url":"https://api.github.com/repos/spicyj/react/git/commits{/sha}","comments_url":"https://api.github.com/repos/spicyj/react/comments{/number}","issue_comment_url":"https://api.github.com/repos/spicyj/react/issues/comments{/number}","contents_url":"https://api.github.com/repos/spicyj/react/contents/{+path}","compare_url":"https://api.github.com/repos/spicyj/react/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spicyj/react/merges","archive_url":"https://api.github.com/repos/spicyj/react/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spicyj/react/downloads","issues_url":"https://api.github.com/repos/spicyj/react/issues{/number}","pulls_url":"https://api.github.com/repos/spicyj/react/pulls{/number}","milestones_url":"https://api.github.com/repos/spicyj/react/milestones{/number}","notifications_url":"https://api.github.com/repos/spicyj/react/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spicyj/react/labels{/name}","releases_url":"https://api.github.com/repos/spicyj/react/releases{/id}","created_at":"2013-05-31T00:44:09Z","updated_at":"2015-01-22T22:42:50Z","pushed_at":"2015-06-13T00:10:43Z","git_url":"git://github.com/spicyj/react.git","ssh_url":"git@github.com:spicyj/react.git","clone_url":"https://github.com/spicyj/react.git","svn_url":"https://github.com/spicyj/react","homepage":"http://facebook.github.io/react/","size":43459,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"facebook:master","ref":"master","sha":"830bc92d36c2dc6e69992ce292cf1cd2075852d4","user":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"repo":{"id":10270250,"name":"react","full_name":"facebook/react","owner":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/facebook/react","description":"A declarative, efficient, and flexible JavaScript library for building user interfaces.","fork":false,"url":"https://api.github.com/repos/facebook/react","forks_url":"https://api.github.com/repos/facebook/react/forks","keys_url":"https://api.github.com/repos/facebook/react/keys{/key_id}","collaborators_url":"https://api.github.com/repos/facebook/react/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/facebook/react/teams","hooks_url":"https://api.github.com/repos/facebook/react/hooks","issue_events_url":"https://api.github.com/repos/facebook/react/issues/events{/number}","events_url":"https://api.github.com/repos/facebook/react/events","assignees_url":"https://api.github.com/repos/facebook/react/assignees{/user}","branches_url":"https://api.github.com/repos/facebook/react/branches{/branch}","tags_url":"https://api.github.com/repos/facebook/react/tags","blobs_url":"https://api.github.com/repos/facebook/react/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/facebook/react/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/facebook/react/git/refs{/sha}","trees_url":"https://api.github.com/repos/facebook/react/git/trees{/sha}","statuses_url":"https://api.github.com/repos/facebook/react/statuses/{sha}","languages_url":"https://api.github.com/repos/facebook/react/languages","stargazers_url":"https://api.github.com/repos/facebook/react/stargazers","contributors_url":"https://api.github.com/repos/facebook/react/contributors","subscribers_url":"https://api.github.com/repos/facebook/react/subscribers","subscription_url":"https://api.github.com/repos/facebook/react/subscription","commits_url":"https://api.github.com/repos/facebook/react/commits{/sha}","git_commits_url":"https://api.github.com/repos/facebook/react/git/commits{/sha}","comments_url":"https://api.github.com/repos/facebook/react/comments{/number}","issue_comment_url":"https://api.github.com/repos/facebook/react/issues/comments{/number}","contents_url":"https://api.github.com/repos/facebook/react/contents/{+path}","compare_url":"https://api.github.com/repos/facebook/react/compare/{base}...{head}","merges_url":"https://api.github.com/repos/facebook/react/merges","archive_url":"https://api.github.com/repos/facebook/react/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/facebook/react/downloads","issues_url":"https://api.github.com/repos/facebook/react/issues{/number}","pulls_url":"https://api.github.com/repos/facebook/react/pulls{/number}","milestones_url":"https://api.github.com/repos/facebook/react/milestones{/number}","notifications_url":"https://api.github.com/repos/facebook/react/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/facebook/react/labels{/name}","releases_url":"https://api.github.com/repos/facebook/react/releases{/id}","created_at":"2013-05-24T16:15:54Z","updated_at":"2015-06-13T01:25:41Z","pushed_at":"2015-06-13T00:10:45Z","git_url":"git://github.com/facebook/react.git","ssh_url":"git@github.com:facebook/react.git","clone_url":"https://github.com/facebook/react.git","svn_url":"https://github.com/facebook/react","homepage":"https://facebook.github.io/react/","size":99918,"stargazers_count":23430,"watchers_count":23430,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3358,"mirror_url":null,"open_issues_count":560,"forks":3358,"open_issues":560,"watchers":23430,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/facebook/react/pulls/4114"},"html":{"href":"https://github.com/facebook/react/pull/4114"},"issue":{"href":"https://api.github.com/repos/facebook/react/issues/4114"},"comments":{"href":"https://api.github.com/repos/facebook/react/issues/4114/comments"},"review_comments":{"href":"https://api.github.com/repos/facebook/react/pulls/4114/comments"},"review_comment":{"href":"https://api.github.com/repos/facebook/react/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/facebook/react/pulls/4114/commits"},"statuses":{"href":"https://api.github.com/repos/facebook/react/statuses/2bbde9fe1b3a644f0711fdfaaa4a3299d2b297f9"}}}}