Document vs window? I've seen stupider bugs.