加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 资源网站 > 资源 > 正文

html – 所有浏览器都忽略无名输入字段吗?

发布时间:2020-12-14 23:18:09 所属栏目:资源 来源:网络整理
导读:如果浏览器没有指定name属性,它是否可以保证不发送输入元素? 例如,我们可以假设POST下面的表格不会发送信用卡号码吗? 最佳答案 Is it guaranteed that a browser doesnt send an input element if it doesnt have the name attribute specified? 是的(除非

如果浏览器没有指定name属性,它是否可以保证不发送输入元素?

例如,我们可以假设POST下面的表格不会发送信用卡号码吗?

最佳答案

Is it guaranteed that a browser doesn’t send an input element if it doesn’t have the name attribute specified?

是的(除非你用JavaScript来改变它).

规范很清楚,controls without names cannot be successful.

A successful control must be defined within a FORM element and must have a control name.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读