mbostock/d3 — Issue #413: selecting lineargradients does not work
Author: Carnby
Created: 2011-12-21 19:07:27+00:00
State: open

The following doesn't work (considering that linearGradient elements exists):

```javascript
> d3.selectAll('linearGradient')
[Array[0]]
```

A consequence of this is that if you bound data to that selection, the enter selection will always have elements.

The problem might be related to this one: http://stackoverflow.com/questions/1445378/jquery-doesnt-select-lineargradient-object

A workaround is to give a class to the lineargradient elements and then select that class. I don't know if this is a d3.js problem.