Skip to content

Warn if rendering an HTML tag spelled with uppercase letters #2756

@bmcmahen

Description

@bmcmahen

If I try running the following code:

var Hello = React.createClass({
    render: function() {
      return React.createElement('BR', null);
    }
});

React.render(<Hello/>, document.body);

I get two <br> tags inserted into the dom, instead of one. I made a quick jsfiddle to show this. http://jsfiddle.net/kb3gN/8662/

I'm running Chrome, if that's at all relevant.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions