code: function getDomElement(element, defaultElement) {
              if (angular.isString(element)) {
                element = $document[0].querySelector(element);
              }
  
              // If we have a reference to a raw dom element, always wrap it in jqLite
              return angular.element(element || defaultElement);
            }
docs: If the specifier is a simple string selector, then query for
  the DOM element.