then clicking on the text alerts the ownerDocument of the div. This happens even if there is an ownerDocument variable declared in the global scope. What this means is that any time you access a global variable in an event handler content attribute, including calling any function declared globally, you can end up with a name collision if a specification adds a new DOM property to elements or documents which has the same name as your function or variable, and a browser implements it.