Commit b49861d
committed
Add compatibility shim for setAttribute[NS] in IE9.
Similar to style.setProperty, IE9 does not always properly coerce
attribute values to strings. This causes issues when attempting to set
an instance of d3.rgb as an attribute value. Now that d3.interpolate
can return d3.rgb instances, this situation can occur more frequently.
This compatiblity shim overrides Element.prototype.setAttribute[NS] so
that all attribute values are coerced to strings in IE9.1 parent d3488d6 commit b49861d
3 files changed
Lines changed: 22 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
13 | 19 | | |
14 | 20 | | |
15 | 21 | | |
| |||
0 commit comments