mbostock/d3 — pull request #632 by jasondavies (2012-05-04 07:35:37+00:00)
Title: Fix d3.xhr for local URIs.

It turns out there's a simple way to support almost all local `file://` requests (where req.status is always 0 in current browsers). The only case where this doesn't work is when the file does actually exist but is empty.

I've tested the CORS use case in Chrome and Safari, and local xhr now works in Safari (it won't work in Chrome at the moment unless you relax the strict security settings).