Skip to content

Handle className properly on SVG nodes #1590

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
May 28, 2014

Conversation

sophiebits
Copy link
Collaborator

This strategy avoids a runtime check for every set (as opposed to using a mutation method).

Test Plan: Verify that changing className works on a div and a rect in latest Chrome, latest Firefox, IE9. Verify that the div works in IE8.

@sophiebits
Copy link
Collaborator Author

This strategy avoids a runtime check for every set (as opposed to using a mutation method).

Test Plan: Verify that changing className works on a div and a rect in latest Chrome, latest Firefox, IE9. Verify that the div works in IE8.
@syranide
Copy link
Contributor

I think the real solution would be something like #1449 or #1512 (or both), but until then, this seems like a harmless fix 👍 .

(PS. If we're serious about SVG, we/someone should probably also make a proper attempt at adding all SVG tags and attributes that doesn't currently conflict with anything in React.)

@barnabyc
Copy link

I agree with @syranide (as he knows) and think an SVG plugin based on the 1.1 SVG IDLs would be awesome. http://www.w3.org/TR/SVG11/idl.html

implementation.hasFeature &&
implementation.hasFeature(
'http://www.w3.org/TR/SVG11/feature#BasicStructure',
'1.1'
Copy link
Member

Choose a reason for hiding this comment

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

Anywhere where we have to fallback to 1.0? I don't really know what I'm talking about so hopefully somebody else does...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No idea, this is what art checks and it seems to work fine in IE9, at least. (@sebmarkbage?)

Choose a reason for hiding this comment

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

It's don't work for me in these time.... my problem is a little bit different, look my post in the other page ;)

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.

5 participants