code: function setupPasswordPlaceholder() {
  				clone = angular.element('<input type="text" value="'+text+'"/>');
  				stylePasswordPlaceholder();
  				hideElement(clone);
  				clone.addClass(emptyClassName)
  					.bind('focus', hidePasswordPlaceholderAndFocus);
  				domElem.parentNode.insertBefore(clone[0], domElem);
  
  				// keep password placeholder in sync with original element.
  				// update element after $watches
  				var watchAttrs = [
  					attrs.ngDisabled,
  					attrs.ngReadonly,
  					attrs.ngRequired,
  					attrs.ngShow,
  					attrs.ngHide
  				];
  				for (var i = 0; i < watchAttrs.length; i++) {
  					if (watchAttrs[i]) {
  						scope.$watch(watchAttrs[i], flexibleUpdatePasswordPlaceholder);
  					}
  				}
  			}
docs: IE8: password inputs cannot display text, and inputs cannot change type, so create a new element to display placeholder