jonsamwell/angular-auto-validate

el[0].hasAttribute is not a function

Closed this issue · 5 comments

Hi,

I have a problem when you receive a nodeName :#comment, nodeValue: ngIf: isOpen "
That give me an error el[0].hasAttribute is not a function

Stack :

TypeError: el[0].hasAttribute is not a function
at shouldValidateElement (jcs-auto-validate.js:847)
at Object.validateElement (jcs-auto-validate.js:892)
at jcs-auto-validate.js:1265
at jcs-auto-validate.js:494
at angular.js:17782
at completeOutstandingRequest (angular.js:5490)
at angular.js:5762(anonymous function) @ angular.js:12416$get @ angular.js:9203(anonymous function) @ angular.js:17785completeOutstandingRequest @ angular.js:5490(anonymous function) @ angular.js:5762

Thanks you!

Hi, could you do a plunker which reproduces the error then I can fix it.

You can use this plunker as a template.

http://plnkr.co/edit/pITG8H4mbLLl9B8YdOkY?p=preview

Fixed in the latest release (v1.18.16)

wow so fast! I love your module!

Thanks!

On Fri, 4 Sep 2015 10:46 kefran06 notifications@github.com wrote:

wow so fast! I love your module!


Reply to this email directly or view it on GitHub
#88 (comment)
.

Wow, that was awesome.
I just faced the same issue and you fixed that in no time.
Thank you for the fix on that one. Your module is amazing!