Must-share information :
- which versions are you using :
SonarQube server version: 2025.1.1
sonarqube-scanner 4.3.0
- what are you trying to achieve : fixing issue DOM elements should use the “autocomplete” attribute correctly
Non-compliant Angular code :
<custom-selector
type="text"
autocomplete="family-name"
formControlName="REDACTED"
label="REDACTED"
name="REDACTED"
placeholder="REDACTED"
>
</custom-selector>
I am having a hard time figuring out what is non-compliant about this code.
Especially since I have another tag in the same file with slightly different values which happens to be compliant. (see below)
Compliant Angular code :
<custom-selector
type="tel"
autocomplete="tel"
formControlName="REDACTED"
label="REDACTED"
name="REDACTED"
placeholder="REDACTED"
>
</custom-selector>
Is there an explanation for this issue or is it a false positive ?
Thanks for your help