When using Password Policy in Internet Explorer 7 the JavaScript crashes.
This is due to the fact that Internet Explorer apparently can't handle trailing comma's in an array. See http://stackoverflow.com/a/5139232.
This will break
var settings = {
'foo' : oof,
'bar' : rab,
};
This will work
Notice the missing trailing comma
var settings = {
'foo' : oof,
'bar' : rab
};| Comment | File | Size | Author |
|---|---|---|---|
| #3 | password_policy-trailing_comma_js-2028507-3.patch | 638 bytes | aohrvetpv |
| #2 | password_policy-trailing_comma_js-2028507-2.patch | 386 bytes | erikwebb |
| password_policy_ie_bug.png | 187.4 KB | bramtenhove |
Comments
Comment #1
erikwebb commentedComment #2
erikwebb commentedComment #3
aohrvetpv commentedTested in IE 7. There are actually two instances of trailing commas that cause errors. (The IE 7 compatibility mode in IE 10 only reports one.) New patch removes both.
Comment #4
deekayen commentedComment #5
deekayen commented