-
Notifications
You must be signed in to change notification settings - Fork 0
Description
If the ng:cloak is being used the selectAll query on window.document fails in chrome (I assume other browsers too). I believe either a check for classes/rules with "[" or catching and skipping exception is needed.
26 Error: Failed to execute 'querySelectorAll' on 'Document': '[ng:cloak]' is not a valid selector.
at Error (native)
at module.service.getRules.collectRules (https://rawgit.com/EnzeyNet/CSSRuleEditor/master/src/CSSRuleEditor.js:187:42)
at Array.forEach (native)
at https://rawgit.com/EnzeyNet/CSSRuleEditor/master/src/CSSRuleEditor.js:196:24
at deferred.promise.then.wrappedCallback (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.8/angular.js:11574:81)
at https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.8/angular.js:11660:26
at Scope.$get.Scope.$eval (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.8/angular.js:12724:28)
at Scope.$get.Scope.$digest (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.8/angular.js:12536:31)
at Scope.$get.Scope.$apply (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.8/angular.js:12828:24)
at https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.8/angular.js:1479:15