Add planned navigation to submit as entity body (fixes #9829)

This commit is contained in:
Keith Yeung 2016-04-25 04:24:59 -04:00
parent cfde40e225
commit 16361086d9

View file

@ -406,6 +406,7 @@ impl HTMLFormElement {
("http", FormMethod::FormPost) | ("https", FormMethod::FormPost) => {
load_data.method = Method::Post;
load_data.data = Some(parsed_data.into_bytes());
self.plan_to_navigate(load_data, &win);
}
// https://html.spec.whatwg.org/multipage/#submit-get-action
("file", _) | ("about", _) | ("data", FormMethod::FormGet) |