If user writes for instead of htmlFor, warning is shown. I suppose autofocus instead of autoFocus should warn too.

return <table><Row /> </table>;
        }
      }
      ReactTestUtils.renderIntoDocument(<Foo />);
      expect(console.error.calls.count()).toBe(3);
      expect(console.error.calls.argsFor(0)[0]).toBe(
        'Warning: validateDOMNesting(...): <tr> cannot appear as a child of ' +
        '<table>. See Foo > table > Row > tr. Add a <tbody> to your code to ' +
        'match the DOM tree generated by the browser.'
      );
      expect(console.error.calls.argsFor(1)[0]).toBe(
        'Warning: validateDOMNesting(...): Text nodes cannot appear as a ' +
        'child of <tr>. See Row > tr > #text.'
      );
      expect(console.error.calls.argsFor(2)[0]).toBe(
        'Warning: validateDOMNesting(...): Whitespace text nodes cannot ' +
        'appear as a child of <table>. Make sure you don\'t have any extra ' +
        'whitespace between tags on each line of your source code. See Foo > ' +
        'table > #text.'
      );
    });
    it('gives useful context in warnings', () => {
      spyOn(console, 'error');
      var Row = React.createClass({
        render: () => <tr />,
      });
      var FancyRow = React.createClass({
        render: () => <Row />,
      });
      class Table extends React.Component {