aurelia / template-lint

Sanity check of Aurelia-flavor template HTML
Apache License 2.0
56 stars 17 forks source link

conflicting attributes even if I use template for the if binding #170

Closed timfish closed 7 years ago

timfish commented 7 years ago

My code looked like this:

    <graph-annotation-hover if.bind="margins && state.bounds" repeat.for="annotation of result.annotations" >...</graph-annotation-hover>

And I got the conflicting attributes error so I moved the if onto a template:

  <template if.bind="margins && state.bounds">
     <graph-annotation-hover repeat.for="annotation of result.annotations" >...</graph-annotation-hover>
  </template>

But still get the error. Am I missing something here, or is this a bug?

MeirionHughes commented 7 years ago

hmm bit odd. The code that checks for that seemly only goes over the attributes for a specific element node.

timfish commented 7 years ago

Just remembered that template within svg is broken so I cant do this anyway. I'll reopen if I find this happening elsewhere.