Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P1822
firefoxForms.html
Active
Public
Actions
Authored by
Jdlrobson
on Aug 3 2015, 11:16 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F357591: firefoxForms.html
Aug 3 2015, 11:16 PM
2015-08-03 23:16:24 (UTC+0)
Subscribers
None
<!DOCTYPE HTML>
<
html
>
<
body
>
<
h1
>
Firefox will not submit forms that are not in the DOM
</
h1
>
In Chrome this form will get submitted and address bar will change to ?name=val
<
br
>
In Firefox this form does not get submitted.
<
br
>
I'm not sure which is the right behaviour.
<
form
id
=
"foo"
method
=
"get"
action
=
"firefoxform.html"
>
<
input
type
=
"text"
name
=
"name"
value
=
"val"
>
<
input
type
=
"submit"
>
</
form
>
<
script
type
=
"text/javascript"
>
var
form
=
document
.
getElementById
(
'foo'
);
form
.
parentNode
.
removeChild
(
form
);
form
.
submit
();
</
script
>
</
body
>
</
html
>
Event Timeline
Jdlrobson
edited the content of this paste.
(Show Details)
Aug 3 2015, 11:16 PM
2015-08-03 23:16:24 (UTC+0)
Jdlrobson
changed the title of this paste from untitled to
firefoxForms.html
.
Jdlrobson
updated the paste's language from
autodetect
to
autodetect
.
Log In to Comment