Skip to content

Parsing error for HTML entity in nested JSX. #183

Closed
@lrowe

Description

@lrowe

The html entity in the following causes a SyntaxError: Unexpected token ; in both current master and React 0.3.

/** @jsx React.DOM */
var mylist = ['a', 'b', 'c'];
// Fails with entity below
React.renderComponent(
    <p>
        {mylist.map(function (id) {
            return (<span>{id} &nbsp;</span>);
        })}
    </p>, document.body);

JSFiddle: http://jsfiddle.net/VLmQt/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions