3 ms·
It's a great feature that's been supported by browsers for decades. <select multiple> uses it. You can use it for checkboxes to select multiple items too. If y
by simonw 3y ago
It's a great feature that's been supported by browsers for decades. <select multiple> uses it. You can use it for checkboxes to select multiple items too.
If you changed it now you would break a whole lot of stuff.
I use it extensively in my own Datasette application, eg here: https://datasette.io/content/plugins?_facet=owner&_facet=is_tool&_facet_array=tags&tags__arraycontains=SQL+Functions&tags__arraycontains=Geospatial https://datasette.io/content/plugins?_facet=owner&_facet=is_...
- chatmasta 3y agoYou wouldn't need to change it. But if you made it a CORS header like Access-Control-Allow-Headers, then websites would be able to provide a default policy forbidding it so that their code that actually requires it would need to explicitly opt into the behavior.
- j-bos 3y agoBut how would that affect a malicious actor deliberately invoking the behavior?