Created
May 21, 2013 09:42
-
-
Save alonisser/5618646 to your computer and use it in GitHub Desktop.
a whatwg suggestion to solve to double sumbitting forms problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//a crude polyfill to handle this functionality |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[OverrideBuiltins] | |
interface HTMLFormElement : HTMLElement { | |
attribute DOMString acceptCharset; | |
attribute DOMString action; | |
attribute DOMString autocomplete; | |
attribute DOMString enctype; | |
attribute DOMString encoding; | |
attribute DOMString method; | |
attribute DOMString name; | |
attribute boolean noValidate; | |
attribute DOMString target; | |
readonly attribute HTMLFormControlsCollection elements; | |
readonly attribute long length; | |
getter Element (unsigned long index); | |
getter object (DOMString name); | |
void submit(); | |
void reset(); | |
boolean checkValidity(); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A suggestion for a whatwg spec change for html forms
Meant to help handling the double submission problem.
pre-alpha. nothing here yet
game plan: