Open Cow258 opened 6 years ago
<form id="form1" method="get"> <input id="keyword" name="keyword" type="text" value="test"/> <input id="method" name="method" type="text" value="PlanA"/> <input id="ok" name="ok" type="submit" value="Submit"> </form>
Url will be wrong! smoothState will be crash!
https://localhost/undefined?keyword=test&ok=Submit&keyword=test&ok=Submit
Url will be correct!
https://localhost/?keyword=test&method=PlanA&ok=Submit
smoothState will be crash!
<form id="form1" method="post" enctype="multipart/form-data"> <input id="keyword" name="keyword" type="text" value="test"/> <input id="method" name="method" type="text" value="PlanA"/> <input id="ok" name="ok" type="submit" value="Submit"> </form>
Fixed thing
GET method Issue Form tag HTML
Old Version
Url will be wrong!
smoothState will be crash!
New Version
Url will be correct!
POST method Issue Form tag HTML
smoothState will be crash!