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

render() {
          return <input>moo</input>;
        }
      }
      var container = document.createElement('div');
      expect(function() {
        ReactDOM.render(<X />, container);
      }).toThrowError(
        'input is a void element tag and must neither have `children` ' +
        'nor use `dangerouslySetInnerHTML`. Check the render method of X.'
      );
    });
    it('should support custom elements which extend native elements', () => {
      if (ReactDOMFeatureFlags.useCreateElement) {
        var container = document.createElement('div');
        spyOn(document, 'createElement').and.callThrough();
        ReactDOM.render(<div is="custom-div" />, container);
        expect(document.createElement).toHaveBeenCalledWith('div', 'custom-div');
      } else {
        expect(ReactDOMServer.renderToString(<div is="custom-div" />)).toContain('is="custom-div"');
      }
    });
  });
  describe('updateComponent', () => {
    var container;
    beforeEach(() => {
      container = document.createElement('div');
    });