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 .html instead of .text ? #6

Open
cmpolis opened this issue Sep 18, 2016 · 1 comment
Open

use .html instead of .text ? #6

cmpolis opened this issue Sep 18, 2016 · 1 comment

Comments

@cmpolis
Copy link
Owner

cmpolis commented Sep 18, 2016

Could include <tspan>'s for styling - side effects/downsides?

@1wheel
Copy link

1wheel commented Sep 20, 2016

Might break on safari:

SVG elements and other non-HTML elements do not support the innerHTML property, and thus are incompatible with selection.html. Consider using XMLSerializer to convert a DOM subtree to text. See also the innersvg polyfill, which provides a shim to support the innerHTML property on SVG elements.

https://github.com/d3/d3-selection/blob/master/README.md#selection_html

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

No branches or pull requests

2 participants