You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(jqLite): IE8 no longer replaces link text content with href mailto value
fixesangular#1949
IE bug: http://webbugtrack.blogspot.com.es/2008/07/bug-140-changing-mailto-links-error-in.html
Only happens when:
1. content has an @ but not ends with it. Regexp: /.*\S.*@.+/
2. href new value is like a URI or email (more or less) Regexp: /^((ftp|https?):\/\/|mailto:|.*@.+)/
To prevent IE from replacing the text content, the text nodes must be detached
before setting the href value and reattached afterwards.
Signed-off-by: Gonzalo Ruiz de Villa <gonzaloruizdevilla@gmail.com>
0 commit comments