mbostock/d3 — pull request #2003 by gka (2014-08-28 21:50:19+00:00)
Title: Allow appending elements and setting class name in one call

This allows compressing a very common action

```js
selection.append("div").attr("class", "moo");
```

into a single command

```js
selection.append("div.moo");
```

Happy to discuss options to improve the implementation details, but it should work as expected. Added a test and made sure that the existing tests are all passing.