Skip to content
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

Don't double-escape style names #1464

Merged
merged 1 commit into from
Jun 20, 2014
Merged

Don't double-escape style names #1464

merged 1 commit into from
Jun 20, 2014

Conversation

sophiebits
Copy link
Collaborator

Previously we were escaping both in createMarkupForStyles and then in
createMarkupForProperty; now we escape only in the latter (otherwise the
hypothetical style name b&ckground would become b&ckground).

Test Plan: grunt fasttest

Previously we were escaping both in createMarkupForStyles and then in createMarkupForProperty; now we escape only in the latter (otherwise the hypothetical style name `b&ckground` would become `b&ckground`).

Test Plan: grunt fasttest
@syranide
Copy link
Contributor

syranide commented May 1, 2014

I guess this background: "url(ex.jpg?arg1&arg2)" is effectively broken today? (though uncommon so I doubt most would know)

@sophiebits
Copy link
Collaborator Author

No, only style names were double-escaped (not values).

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

zpao added a commit that referenced this pull request Jun 20, 2014
Don't double-escape style names
@zpao zpao merged commit f0fc42a into facebook:master Jun 20, 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.

4 participants