Closed Bug 625724 Opened 14 years ago Closed 14 years ago

Bank of America login page has strict mode issues

Categories

(Tech Evangelism Graveyard :: English US, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 639190

People

(Reporter: bzbarsky, Unassigned)

Details

Relevant bits: "use strict"; ..... boa = window.boa || {}; That throws; "boa" is undeclared. Unfortunately, getting at the page involves having a username for an account with Bank of America. I don't _think_ this keeps me from logging in (hard to tell because right this second I can't log in in either Firefox 4 or Firefox 3.6 or Safari; I think the site is generally having issues). But looking into the login issue made me notice the above.
Boris, can you spot a well-known JS library that has "use strict" and in fact conforms to strict mode, but which was carelessly concatenated to other sources that do not conform? /be
Nope. Here's the full code from the "use strict" to the failure point: "use strict"; (function ($) { $(function () { $("input:text").focus(function () { if ($(this).attr("readonly") != true) { $(this).val("") } }); $("input:text").blur(function () { if (($(this).val() === "") || ($(this).val() === " ")) { $(this).val($(this).attr("title")) } }) }) })(jQuery); boa = window.boa || {}; And logging in works again now, so this failure is at least nonfatal.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.