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
};

Comments

erikwebb’s picture

Issue summary: View changes
Status: Needs review » Active
erikwebb’s picture

Status: Active » Needs review
StatusFileSize
new386 bytes
aohrvetpv’s picture

Tested 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.

deekayen’s picture

Status: Needs review » Closed (won't fix)
deekayen’s picture

Status: Closed (won't fix) » Fixed

  • Commit d2f3c94 on 7.x-2.x authored by AohRveTPV, committed by deekayen:
    Issue #2028507 by AohRveTPV, erikwebb | bramtenhove: Fixed Internet...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.