Oops, the sourceIndex of the documentElement in IE is 1, not 0.