为什么Chrome会显示“请填写此字段”提示空字段? [英] Why is Chrome showing a "Please Fill Out this Field" tooltip on empty fields?
问题描述
我的客户联系了我说,用户投诉说有些字段现在显示一条提示信息请填写此字段。我无法相信我听到的......但客户端是正确的 - 使用最新的Chrome版本,一些字段显示浏览器工具提示,甚至与验证器并排显示此消息!
有什么问题?我错过了什么?
谢谢。
编辑:
由我的用户控件生成的HTML如下所示:
< input name =tbMontantetype =文本maxlength =8size =10tbMontanteclass =Montantetextfield
FieldName =Montante
Required =True
AllowDecimalValues =True
/>
编辑:
我的doctype如下:
<!DOCTYPE HTML PUBLIC - // W3C // DTD HTML 4.01 Transitional // EN http://www.w3.org/TR/html4/loose.dtd\">
我的浏览器是否应该使用HTML 5来解析它?
https://www.w3.org/TR/html5/sec-forms.html#element-attrdef-form -novalidate
您可以在表单中停用验证。
I was contacted by my client saying that users complaint saying that some fields now show a tooltip with a message "Please Fill out This Field". I couldn't believe what I heard... but the client is right - using latest Chrome version some fields show a browser tooltip with this message even side by side with my validators!
What's the problem? What am I missing?
Thanks.
EDIT:
The HTML generated by my user control is as follows:
<input name="tbMontante" type="text" maxlength="8" size="10" tbMontante" class="Montantetextfield"
FieldName="Montante"
Required="True"
AllowDecimalValues="True"
/>
EDIT:
My doctype is as follows:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
Should my browser use HTML 5 to parse it?
https://www.w3.org/TR/html5/sec-forms.html#element-attrdef-form-novalidate
You can disable the validation in the form.
这篇关于为什么Chrome会显示“请填写此字段”提示空字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!