Open apoblock opened 3 years ago
If the attribute has a template value and is followed by other attribute, the linter will get incorrect attribute value. For example following:
<tag attr1={val} attr2="some-other-val" attr3="">...</tag>
when run with --attributes "attr1" --templateDelimiters "{,}", will get attr2="some-other-val" as a value of attr1.
--attributes "attr1" --templateDelimiters "{,}"
attr2="some-other-val"
attr1
The reason is that the tool internally replaces template code with a space before processing a file what yields something like this:
<tag attr1= attr2="some-other-val" attr3="">...</tag>
If the attribute has a template value and is followed by other attribute, the linter will get incorrect attribute value. For example following:
when run with
--attributes "attr1" --templateDelimiters "{,}"
, will getattr2="some-other-val"
as a value ofattr1
.The reason is that the tool internally replaces template code with a space before processing a file what yields something like this: