On Fri, Jan 13, 2012 at 12:34 PM, Boris Zbarsky <bzbar...@mit.edu> wrote: > I would prefer a definition that doesn't involve defaultView, actually. I > don't expect browsers to converge defaultView behavior any time in the near > or medium future, so the testability would be illusory: tests would just > depend on whether browsers implement defaultView "correctly"...
What well-defined alternative do you suggest? "Is the .document of some Window"? That would be easy enough to test in simple cases, but what if there's navigation and a reference to the Document is kept but the Window is no longer accessible, or something like that?