Closed ftes closed 4 months ago
Extracted from #74
Align PageView with IndexLive: <select multiple> should use name attr ending in [].
PageView
IndexLive
<select multiple>
attr
[]
Even though the tests do not currently fail (decode multiple values), an actual Phoenix app would fail (decode only a single value).
As a follow-up, it might be good to make the Static driver stricter to emulate real-world behaviour.
Static
https://github.com/elixir-plug/plug/blob/v1.16.0/lib/plug/parsers/urlencoded.ex https://github.com/elixir-plug/plug/blob/v1.16.0/lib/plug/conn/query.ex#L24
Lists are created with `[]`: iex> decode("foo[]=bar&foo[]=baz")["foo"] ["bar", "baz"]
Somewhat related to #77, #79
@ftes I'm going to close this since I think it's fixed by #94 (right?). If it's not, happy to reopen it.
Extracted from #74
Align
PageView
withIndexLive
:<select multiple>
should use nameattr
ending in[]
.Even though the tests do not currently fail (decode multiple values), an actual Phoenix app would fail (decode only a single value).
As a follow-up, it might be good to make the
Static
driver stricter to emulate real-world behaviour.https://github.com/elixir-plug/plug/blob/v1.16.0/lib/plug/parsers/urlencoded.ex https://github.com/elixir-plug/plug/blob/v1.16.0/lib/plug/conn/query.ex#L24