Skip to content

Do we still need to stringify attributes before assigning them? #11735

Closed
@nhunzaker

Description

@nhunzaker

React manually stringifies all attributes before assigning them:

https://github.com/facebook/react/blob/master/packages/react-dom/src/client/DOMPropertyOperations.js#L169-L179

This appears to be for IE8/9. However it's possible that this is an IE8 only behavior. See IE9:

screen shot 2017-11-30 at 8 02 51 pm

screen shot 2017-11-30 at 8 03 38 pm

Can we get rid of '' + value in DOMPropertyOperations?

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