Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 32 lines (25 sloc) 1.498 kB
f359f2c @Daniel15 Initial commit
authored
1 IE 6 and 7 button fix
2 =====================
3
4 Internet Explorer 6 and 7 exhibit some odd behaviour when using `<button type="submit">` tags.
5 The values of all buttons are posted to the server, instead of just the one that was clicked (like
6 other browsers). In addition to this, IE 6 posts the `innerHTML` of the button, instead of its
7 `value` attribute. This script fixes both these issues.
8
9 Licence
10 =======
11 (The MIT licence)
12
13 Copyright (C) 2012 Daniel Lo Nigro (Daniel15)
14
15 Permission is hereby granted, free of charge, to any person obtaining a copy of
16 this software and associated documentation files (the "Software"), to deal in
17 the Software without restriction, including without limitation the rights to
18 use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
19 of the Software, and to permit persons to whom the Software is furnished to do
20 so, subject to the following conditions:
21
22 The above copyright notice and this permission notice shall be included in all
23 copies or substantial portions of the Software.
24
25 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31 SOFTWARE.
Something went wrong with that request. Please try again.