Attribute autocorrect not allowed on element input at this point
Asked Answered
B

1

8

I have a problem validating my code.

input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'
w3c validator says the message: "Attribute autocorrect not allowed on element input at this point." I disabled the attribute autocapitalize but it doesn't work.

Beguin answered 26/5, 2014 at 16:37 Comment(0)
T
-5

if you want to win with w3c validator, remove attributes that are not allowed on element and add them by javascript

Thoroughfare answered 26/5, 2014 at 16:48 Comment(1)
Just as a reminder, adding invalid attributes via javascript is still invalid plus you'll have to write and maintain more, and the client will have to download and execute more code. Leaving the attribute there is better for everyone.Ridenour

© 2022 - 2024 — McMap. All rights reserved.