Skip to content

Issue getting rules for non-completed angular page #1

@jadrake75

Description

@jadrake75

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions