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

Use jquery text instead of html. #14

Merged
merged 2 commits into from
Dec 6, 2013

Conversation

benrudolph
Copy link
Contributor

The jquery html function does not work for svg text elements which was my use case. Since we should never be displaying html anyways I thought this could make the library slightly more multifunctional. Great plugin btw, really enjoy it.

@mhuggins
Copy link
Owner

mhuggins commented Dec 6, 2013

Thanks for the PR! Before I merge it in, I'm just curious if you could share an example of what an svg text element would look like that wouldn't work with the existing code. I'm pretty sure I'm going to merge regardless, I'm just curious for the sake of learning. 😄 Thanks!

@benrudolph
Copy link
Contributor Author

hey! thanks for the response. here's a small example: https://gist.github.com/benrudolph/7830486

@mhuggins
Copy link
Owner

mhuggins commented Dec 6, 2013

Cool, thanks! Tried it on jsfiddle before and after the change, and I see what you mean now.

mhuggins added a commit that referenced this pull request Dec 6, 2013
Use jquery text instead of html.
@mhuggins mhuggins merged commit 8ccbeeb into mhuggins:master Dec 6, 2013
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