A customer complained that printing a Views (3.7) page on my Drupal (7.23) Site using Theme Marinelli (7.x-3.0-beta11) causes IE10 to error ("Internet Explorer has stopped working"). And he's right. Works fine on Firefox, Chrome, Opera, even IE9 (but note not in IE 10 using Browser Mode IE9). It does work in IE10 in Document Mode 'quirks'.

On investigation it boils down to the use of sticky table headers - use them fail, turn them off fine! I found that code in misc/tableheader.js lines 12-14 (below) 'helps' IE10 create the problem. When I noop the function or unset it, or turn off this feature in Views the problem goes away . No problem on page display of the same page.

$('table.sticky-enabled', context).once('tableheader', function () {
$(this).data("drupal-tableheader", new Drupal.tableHeader(this));
});

Is there anything wrong or non-standard in this code that might 'invite' IE10 to mis-behave?

Ron

Comments

rl347’s picture

Assigned: rl347 » Unassigned
nod_’s picture

Category: bug » support

probably related to the version of jquery, what happens when you update it with jquery_update?

rl347’s picture

thx, but no. Tried 1.5, 1.7 & 1.8 all showed same error. I did not set 'use from a CDN'. Matters?

nod_’s picture

Version: 7.23 » 7.x-dev
Category: support » bug

no CDN doesn't matter.

Can you try reproducing it in D8 see if it does the same thing? (don't have IE10 close by ATM). The only place sticky headers are left in D8 are on the permission page, what happens when you try to print that one?

Thanks.

rl347’s picture

willdo, but that'll be tomorrow - I don't have a D8 setup

Update- just looked at what's involved and it's more than I have time for at the moment. If you can send me a link to a public site I'll test, else I guess we'll have to let it lie for the moment. Ta

Update 2 - done some bumbling around and the problem is line 43 of tableheader.js:
.css({ position: 'fixed', top: '0px' });
Anything other than 'fixed' works. Does drupal somehow break IE10 rules for using 'fixed'?

Update3 - also fails on IE11 preview