You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minify removes any type="text" from <input type="text">. If such an element is styled based on the CSS rule input[type="text"] the resulting minified code is semantically different from the source code.
I know, I can call minify with --html-keep-default-attrvals to retain that attribute, but it feels wrong, because other default attributes, which can safely be discarded, are affected as well.
The text was updated successfully, but these errors were encountered:
Thanks for raising this. I understand this is a bit surprising, and the matter is unfortunate, but I believe that the correct CSS rule should be input:not([type]), input[type='text'], which most CSS frameworks seem to do in this case. That would style all text inputs, following the HTML specification more closely. Could that work for you?
minify
removes anytype="text"
from<input type="text">
. If such an element is styled based on the CSS ruleinput[type="text"]
the resulting minified code is semantically different from the source code.I know, I can call
minify
with--html-keep-default-attrvals
to retain that attribute, but it feels wrong, because other default attributes, which can safely be discarded, are affected as well.The text was updated successfully, but these errors were encountered: