lit-analyzer icon indicating copy to clipboard operation
lit-analyzer copied to clipboard

no-incompatible-type-binding false positives on valid html code

Open davidkron opened this issue 2 years ago • 0 comments
trafficstars

lit-analyzer complains about a no-incompatible-type-binding problem on this perfectly fine code:

<button value="myvalue" formmethod="dialog">Confirm</button>

lit-analyzer problem description:

Type '"dialog"' is not assignable to '"GET" | "POST"'
323:  ton value="myvalue" formmethod="dialog">Confirm</b
no-incompatible-type-binding

Another use-case where the case-sensitivity of HTML is not considered:

<form action="" method="post">

lit-analyzer problem description:

Type '"post"' is not assignable to '"GET" | "POST" | "dialog"'
364:  <form action="" method="post">
no-incompatible-type-binding

See this example code sandbox that demonstrates the problem: https://codesandbox.io/p/sandbox/nostalgic-newton-f8fk86

davidkron avatar Aug 09 '23 20:08 davidkron