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
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
I have a custom directive that replaces with template <option ng-repeat> and this ends up throwing an exception in chromeHack on line 28664:
TypeError: optionElement[0].hasAttribute is not a function
at chromeHack (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular.js:28664:24)
at self.addOption (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular.js:28745:5)
at self.registerOption (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular.js:28792:12)
at http://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular.js:29133:22
at invokeLinkFn (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular.js:9039:9)
at nodeLinkFn (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular.js:8533:11)
at compositeLinkFn (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular.js:7929:13)
at nodeLinkFn (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular.js:8528:24)
at compositeLinkFn (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular.js:7929:13)
at nodeLinkFn (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular.js:8528:24) <!-- ngRepeat: item in data -->
Reproducable: always Angular Version(s): 1.4.8, 1.4.9 Browsers and Operating System: Chrome Version 47.0.2526.111 m, Windows 10 64-bit Reproduce the Error: http://plnkr.co/edit/UejSXqwfq320wtzN7HWG
The text was updated successfully, but these errors were encountered:
We've actually added a number of checks for comments, but it seems like this is another corner case. Given that this uses replace I'm not too keen on working on a fix. If someone wants to give it a shot, your're welcome. ;)
gkalpak
added a commit
to gkalpak/angular.js
that referenced
this issue
Jan 28, 2016
Under specific circumstances (e.g. adding options via a directive with `replace: true` and a
structural directive in its template), an error occurred when trying to call `hasAttribute()` on a
comment node (which doesn't support that method).
This commit fixes it by first checking if `hasAttribute()` is available.
Fixesangular#13874
Under specific circumstances (e.g. adding options via a directive with `replace: true` and a
structural directive in its template), an error occurred when trying to call `hasAttribute()` on a
comment node (which doesn't support that method).
This commit fixes it by first checking if `hasAttribute()` is available.
Fixesangular#13874
gkalpak
added a commit
to gkalpak/angular.js
that referenced
this issue
Jan 28, 2016
Under specific circumstances (e.g. adding options via a directive with `replace: true` and a
structural directive in its template), an error occurred when trying to call `hasAttribute()` on a
comment node (which doesn't support that method).
This commit fixes it by first checking if `hasAttribute()` is available.
Fixesangular#13874
Under specific circumstances (e.g. adding options via a directive with `replace: true` and a
structural directive in its template), an error occurred when trying to call `hasAttribute()` on a
comment node (which doesn't support that method).
This commit fixes it by filtering out comment nodes in the `addOption()` method.
Fixes#13874Closes#13878
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I have a custom directive that replaces with template
<option ng-repeat>
and this ends up throwing an exception in chromeHack on line 28664:Reproducable: always
Angular Version(s): 1.4.8, 1.4.9
Browsers and Operating System: Chrome Version 47.0.2526.111 m, Windows 10 64-bit
Reproduce the Error: http://plnkr.co/edit/UejSXqwfq320wtzN7HWG
The text was updated successfully, but these errors were encountered: