mbostock/d3 — pull request #658 by geowa4 (2012-05-29 14:07:46+00:00)
Title: API inconsistency when using Sizzle causing defect in IE9

When using Sizzle, the API for `d3_select` changes when there is no element to select. When using Sizzle, `undefined` is returned since `[][0] === undefined`. Without Sizzle, `d3_select` returns `null`. This is a problem, because IE9 does not support calling `HTMLElement.insertBefore` (see selection-insert.js) with `undefined` as the second argument; `null` is fine, though.