Skip to content

minifier hangs on parsing errors caused by angular brace mismatch #177

@jrencz

Description

@jrencz

After parsing tags with missing right angular brace like this:

<foo bar="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.

Cold you please take a look at ericclemmons/grunt-angular-templates#91 where I described the problem and minifier settings in detail?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions