Skip to content

Ensure className={false} turns into string 'false' #1082

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 28, 2014

Conversation

sophiebits
Copy link
Collaborator

Fixes inconsistency shown by http://jsfiddle.net/zpao/qeXLm/.

@@ -180,15 +180,6 @@ var DefaultDOMPropertyConfig = {
srcDoc: 'srcdoc'
},
DOMMutationMethods: {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be safe to just remove this whole object. Though it gets set to an empty object anyway.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, done.

@zpao
Copy link
Member

zpao commented Feb 14, 2014

I guess this supercedes #1072? Or should we do both? How is IE8 impacted?

@sophiebits
Copy link
Collaborator Author

No, this doesn't fix SVG. We should do both in a way such that things still work in IE8.

@zpao
Copy link
Member

zpao commented Feb 19, 2014

We need to update https://github.com/facebook/react/blob/master/src/browser/dom/__tests__/DOMPropertyOperations-test.js#L152-L166 as well. We should probably still test this path though.

zpao added a commit that referenced this pull request Feb 28, 2014
Ensure className={false} turns into string 'false'
@zpao zpao merged commit ae72e6e into facebook:master Feb 28, 2014
@zpao zpao added this to the 0.9.1 milestone Feb 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants