user736893
user736893

Reputation:

<template is="dom-if"> = "Wrong Attribute Value"

I'm going through the code analysis on my project in WebStorm. This polymer template is working fine and as far as I can tell is correct according to the docs, but keeps throwing the following warning on the dom-if part:

Wrong attribute value

Code:

<template is="dom-if" if="{{showspark}}">
<div class="box-body text-center" style="padding-top:10px;">
    <span id="sline">
    </span>
</div>
</template>

The only recourse it offers is to inject language or reference:

enter image description here

How can I make this warning go away?

Upvotes: 1

Views: 432

Answers (1)

lena
lena

Reputation: 93748

Please vote for WEB-23586 to be notified on any progress with this issue. Unfortunately this error can't be suppressed; the only way to get rid of it is setting highlighting level to <None> using Hector icon in the lower right corner: open your .html file in editor, click the Hector icon and then move the slider to the left. See http://www.jetbrains.com/webstorm/webhelp/changing-highlighting-level-for-the-current-file.html

Upvotes: 2

Related Questions