d3-annotate icon indicating copy to clipboard operation
d3-annotate copied to clipboard

use `.html` instead of `.text` ?

Open cmpolis opened this issue 9 years ago • 1 comments

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

cmpolis avatar Sep 18 '16 06:09 cmpolis

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

1wheel avatar Sep 20 '16 21:09 1wheel