attribute-allowed-values should optionally allow boolean as empty string
Browsers sometimes set boolean attributes to attr=""
or attr="attr"
when setting dynamically. This causes errors from html-validate-protractor.
Suggest adding an option to attribute-allowed-values
to allow boolean attributes as empty string or as itself (attr="attr"
)
Reduced test-case
<input disbled>
<input disabled="">
<input disabled="disabled">
Expected result
No errors.
Actual result
2:8 error Attribute "disabled" has invalid value "" attribute-allowed-values 3:8 error Attribute "disabled" has invalid value "disabled" attribute-allowed-values