Skip to content

Problem with JSX and ECMAScript3 (IE8) #987

Closed
@Bonuspunkt

Description

@Bonuspunkt

I ran into a small problem with the output of the jsx compiler on IE8.
Because IE8 uses ECMAScript3 the reserved words become a problem in the json objects.

Example:

<label for="start">Start</label>
<input id="start" type="date" />

which becomes

React.DOM.label( {for:"start"}, "Start"),
React.DOM.input( {id:"start", type:"date" } ),

to fix this problem, you have to put quotes around the keyword

React.DOM.label( {"for":"start"}, "Start"),
React.DOM.input( {id:"start", type:"date" } ),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions