[英]html select repeated values 'valid'?
Is a select with repeated values “well formed” or “valid”? 具有重复值的选择是否“格式正确”或“有效”? I've been looking for references to this with no luck.
我一直在寻找没有运气的参考。 The reason i'm asking is a lot of frameworks give the syntax
我问的原因是很多框架都提供了语法
-createSelect(array options, array selected, type, etc)-
and this options array is an associative array, implying there are not repeated values. 并且此options数组是一个关联数组,表示没有重复的值。 But this https://jsfiddle.net/uqkzvd9s/ does not trigger any warning in the browser that i can see.
但这https://jsfiddle.net/uqkzvd9s/不会在浏览器中触发我可以看到的任何警告。
是的,HTML中没有限制可以在单个选择元素中使用特定值的次数的限制。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.