select[multiple] .value: break BC and make sense out of it please

Hello everybody !

This is my first post and i'm not sure this is the right mailing list,
please bare with me friends <3

Currently, .value is a string even for a multiple select. You can use it to
get the "first selected item value or an empty string if there is no
selected item". As setter it's not any better.

https://jsfiddle.net/uhfsc6qg/6/

I refuse to believe that anyone in the world is currently relying on .value
as a getter or setter for a multiple select. How can anyone make any sense
out of it ?

..value should deal with the actual field value, even if it can be multiple,
which means an array.

This would make sense: selectMultiple.value = ['a', 'b']

What can be done ?

Thanks

-- 
∞

Received on Monday, 5 March 2018 19:18:38 UTC