URL: https://secure.scandiabanken.no
Browser / Version: IE11
Operating System: Windows
Problem type: Looks like the website has a bug.
Site owner: No
Steps to Reproduce
- Navigate to: https://secure.scandiabanken.no
- Log in to online bank
- Go to "Betaling" (payment)
- Focus "due date" and press the [T] key
Expected Behavior: It should insert today's date
Actual Behavior: It doesn't
The page contains some text warning you against an issue with IE 11, suggesting that users manually add the site to compatibility view lists.
The problem is that they use a rather old date library
https://secure.skandiabanken.no/aspnet_client/PetersDatePackage/1_1_9/DateTextBox.js
// Copyright 2003, 2004 Peter L. Blum, All Rights Reserved, www.PeterBlum.com
// Peter's Date Package Release 1.1.9
and it uses getElementById() and passes in a form element name. This markup:
<input name="ctl00$MainContentPlaceHolder$BoxPayment$txtDueDate" title="Datoformat: dd.mm.åååå Hurtigtaster: [T] i dag [pil opp] neste dag, [pil ned] forrige dag [Page Up] neste mnd, [Page Down] forrige mnd [C] åpne kalender" id="MainContentPlaceHolder_BoxPayment_txtDueDate">
and this JS:
DTB_Init('ctl00$MainContentPlaceHolder$BoxPayment$txtDueDate','CustomDateParser');
ends up calling this method:
function PDP_GetById(pId)
{
if (document.getElementById)
return document.getElementById(pId);
else if (document.all)
return document.all[pId]
else if (document.layers)
{
var vElement = "";
eval("vElement=document." + gPDP_FormName + "['" + pId + "']");
return vElement;
}
else
return null; }
The simplest fix would be to edit the above method to start
function PDP_GetById(pId)
{
if (document.getElementById && document.getElementById(pId))
return document.getElementById(pId);
else if(document.getElementsByName && document.getElementsByName(pId).length)
return document.getElementsByName(pId)[0];
else if (document.all)
and the problem should go away..
URL: https://secure.scandiabanken.no
Browser / Version: IE11
Operating System: Windows
Problem type: Looks like the website has a bug.
Site owner: No
Steps to Reproduce
Expected Behavior: It should insert today's date
Actual Behavior: It doesn't
The page contains some text warning you against an issue with IE 11, suggesting that users manually add the site to compatibility view lists.
The problem is that they use a rather old date library
https://secure.skandiabanken.no/aspnet_client/PetersDatePackage/1_1_9/DateTextBox.js
and it uses getElementById() and passes in a form element name. This markup:
and this JS:
ends up calling this method:
The simplest fix would be to edit the above method to start
and the problem should go away..