whole_func_string: function getWindowForElement(element) {
          var doc = element.ownerDocument || element;
          return doc.defaultView || doc.parentWindow || window;
      }
func_code_string: function getWindowForElement(element) {
          var doc = element.ownerDocument || element;
          return doc.defaultView || doc.parentWindow || window;
      }
func_documentation_string: get the window object of an element
  @param {HTMLElement} element
  @returns {DocumentView|Window}