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
After parsing tags with missing right angular brace like this:
<foobar="1" baz</foo>
Parse error is thrown but parsing time is not always the same. For some attributes (especially attributes with dashes and used with without the value what is common when angular attribute directives are used) parser tends to hang for several seconds and even several minutes sometime.
I use html-minifier via the ngtemplates grunt plugin. I already discussed the problem with @ericclemmons and we both think the problem is closer to the minifier itself than the grunt plugin.
I'll mark this as "possible feature" in a sense that we might consider optimizing parser to report these errors sooner. I have a feeling this could be caused by catastrophic backtracking and is common when giving certain input to certain parsers. If anyone has time to look into it, I'll gladly consider merging this in.
After parsing tags with missing right angular brace like this:
Parse error is thrown but parsing time is not always the same. For some attributes (especially attributes with dashes and used with without the value what is common when angular attribute directives are used) parser tends to hang for several seconds and even several minutes sometime.
I use html-minifier via the ngtemplates grunt plugin. I already discussed the problem with @ericclemmons and we both think the problem is closer to the minifier itself than the grunt plugin.
Cold you please take a look at ericclemmons/grunt-angular-templates#91 where I described the problem and minifier settings in detail?
The text was updated successfully, but these errors were encountered: