document.releaseCapture() is only needed if you want to stop capturing before the mouseup.  Captures are automatically released, so that's what I'm doing here.  I haven't found any code that releases a capture early, so I didn't add a releaseCapture to the shim.