Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

fix($location): don't call indexOf() of undefined href attribute #8681

Closed
wants to merge 1 commit into from

Conversation

caitp
Copy link
Contributor

@caitp caitp commented Aug 19, 2014

Closes #7721

@@ -670,7 +670,7 @@ function $LocationProvider(){
// http://msdn.microsoft.com/en-us/library/ie/dd347148(v=vs.85).aspx
var href = elm.attr('href') || elm.attr('xlink:href');

if (href.indexOf('://') < 0) { // Ignore absolute URLs
if (/*href &&*/ href.indexOf('://') < 0) { // Ignore absolute URLs
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this initial commit is really just here to test this on the CI server...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IE9 error with ng-click and no href
2 participants