http://www.w3.org/TR/REC-html32#select > multiple > The presence of this attribute signifies that the > users can make multiple selections. By default only one selection is allowed.
これは知らないものは無視するというHTMLの動きの原則にあっているし 昔からの挙動だと思う。 0611Name_Not_Found2015/04/06(月) 21:27:19.02ID:???>>597 別に煽ってるつもりはないし、相変わらず何も分かってないのはそっちでしょ。 >>The values "true" and "false" are not allowed on boolean attributes. ってのはあくまでNoteであって、"true"/"false"を使ってはいけないという仕様があるのではなく、 "true"/"false"にboolean attributesとしての特別の意味はないから気をつけてね程度のもの。 実際は属性値として設定しておくことは可能でその場合はtrueとみなされる。 嘘は良くないよ。 06125972015/04/06(月) 22:13:53.36ID:???>>611 煽ってるつもりがないなら悪かった だが誤解しているのはそちらなので、譲りたくない気持ちは分かるがもう一度考えてくれ
> "true"/"false"を使ってはいけないという仕様があるのではなく、 断言する。ある。
NOTEのすぐ上にこう書いてある https://html.spec.whatwg.org/multipage/infrastructure.html#boolean-attribute > If the attribute is present, its value must either be the empty string or a value that is an ASCII case-insensitive match for the attribute's canonical name, with no leading or trailing whitespace. 『属性が存在するなら、その値は「空の文字列」か「大文字小文字を区別せず属性名に一致する文字列」(前後に空白文字は認めない)である必要がある』 と、明記してある。 つまり、<select multiple>も<select multiple="">も<select multiple="multiple">も<select multiple="MuLtIpLe">もいい。 しかし、<select multiple="true">や<select multiple="hoge">や<select multiple="ok">はダメだ。