This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(a): workaround IE bug affecting mailto urls
Apparently there is a really weird bug in IE6-8 that causes anchor textContent to be reset with href content when both contain @ symbol. Inserting a bogus comment node into all anchor elements in IE works around this browser bug. I'm fixing the issue via directive because that way we'll fix it for jQuery as well. I fixed an e2e test too because it was incorrect. Closes #1949
- Loading branch information
Showing
3 changed files
with
34 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37e8b12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before updating angular to this version, I used the fact that an empty href used in combination with ng-click allowed all browsers to show the link as clickable. Now, I have to simulate that behaviour through css... Is that the wanted behaviour ?
37e8b12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before this change it seems like the href attribute was being set on all anchors where the code's intention was to set it on all anchors for browsers IE 8 and older. I kind of assumed you guys were doing this on purpose because it was nice to not have to put an empty href on every a tag in order to have the element be focus-able, but since upgrading from 1.0.4 all of my anchors are now behaving in not the desired way.
@IgorMinar would you mind speaking at all to this, maybe explaining this change an if it the consequences of it were intentional. Are there any anchors out there that people don't want to have href attributes on, or at least the behavior that comes with that?