Constructor Checking Error With Frames
===

I have

    var rect = someElement.getBoundingClientRect();
    ...
    if (rect.constructor != ClientRect)
         return null;

My problem is that the if statement always returns null if the element is in frames. But it's fine for elements outside frames. I console.log and they seem to be equal. Any ideas on why this is happening?

