?
avatar Bakual
Bakual
14 Jun 2017

Steps to reproduce the issue

Open backend with IE11

Expected result

Works

Actual result

I get an error in my console directly after logging in:
image

I get another error when accessing a list view (eg article manager):
image

System information (as much as possible)

Used IE11 on Windows 7 for that test.

Additional comments

avatar Bakual Bakual - open - 14 Jun 2017
avatar joomla-cms-bot joomla-cms-bot - change - 14 Jun 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 14 Jun 2017
avatar Bakual Bakual - change - 14 Jun 2017
Title
[4.0] Compatibility with IE11
[4.0] JS Compatibility with IE11
avatar Bakual Bakual - edited - 14 Jun 2017
avatar Bakual Bakual - change - 14 Jun 2017
Title
[4.0] Compatibility with IE11
[4.0] JS Compatibility with IE11
avatar C-Lodder
C-Lodder - comment - 14 Jun 2017

PR: #16693

avatar wilsonge wilsonge - close - 14 Jun 2017
avatar wilsonge wilsonge - change - 14 Jun 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-06-14 15:33:47
Closed_By wilsonge
avatar wilsonge wilsonge - close - 14 Jun 2017
avatar Bakual Bakual - reopen - 14 Jun 2017
avatar Bakual Bakual - change - 14 Jun 2017
Status Closed New
Closed_Date 2017-06-14 15:33:47
Closed_By wilsonge
avatar Bakual Bakual - reopen - 14 Jun 2017
avatar Bakual
Bakual - comment - 14 Jun 2017

Reopening since that PR didn't help at all.

avatar franz-wohlkoenig franz-wohlkoenig - change - 14 Jun 2017
Category JavaScript
avatar C-Lodder
C-Lodder - comment - 14 Jun 2017

Really? It fixed the console error for me in IE11

avatar Bakual
Bakual - comment - 14 Jun 2017

Still exact same error message, only a few lines later due to the added lines from your PR.

image

Tested on currrent 4.0-dev branch (commit afa4756)

avatar dgt41
dgt41 - comment - 14 Jun 2017

@Bakual can you translate the error message please?

avatar Bakual
Bakual - comment - 14 Jun 2017

The object doesn't support the property or method "closest"

The difference to the first test is that this is now on a Windows 10 computer (at home) while the other was a Windows 7 (at work). But I guess that shouldn't matter.

avatar C-Lodder
C-Lodder - comment - 14 Jun 2017

It shouldn't make a difference at all as I believe the IE version are exactly the same....just with a different version number (11 - 12)

avatar franz-wohlkoenig franz-wohlkoenig - change - 15 Jun 2017
Status New Discussion
avatar Bakual
Bakual - comment - 15 Jun 2017

It's always IE 11. There is no IE12 ?

avatar C-Lodder
C-Lodder - comment - 15 Jun 2017

That was the beer talking lol

The PR has unfortunately been merged (without tests) so could you test 1 more time and let me know if you still get an error from the template.js?

You also mentioned an error in the list views....just FYI, that PR wasn't supposed to fix that....only the sidebar ;)

avatar Bakual
Bakual - comment - 15 Jun 2017

You also mentioned an error in the list views....just FYI, that PR wasn't supposed to fix that....only the sidebar ;)

Yeah, got that. Another reason why the issue shouldn't have been closed ?

avatar Bakual
Bakual - comment - 15 Jun 2017

The PR has unfortunately been merged (without tests) so could you test 1 more time and let me know if you still get an error from the template.js?

Not sure what to test. My test was done with the merged PR already and that PR didn't get any changes after the merge to my knowledge. Or did I miss something?

avatar wilsonge
wilsonge - comment - 15 Jun 2017

I'm assuming you've ensured it's not browser cache or something stupid

avatar C-Lodder
C-Lodder - comment - 15 Jun 2017

Hmm odd, cause before the PR, I was getting a console log error regarding closest(), which prevented the sidebar from working at all. After the PR, it was all good.

@ciar4n could you test on IE11 please and see if you get any errors?

avatar Bakual
Bakual - comment - 15 Jun 2017

I'm assuming you've ensured it's not browser cache or something stupid

I verified in the browser dev tools that the JS files got the changes in it. As you can see from the screenshot, there is also a difference in the linenumbers where the error occurs, the difference is exactly by the lines added by the PR. So I doubt it is browser caching, would be very odd then.

avatar ciar4n
ciar4n - comment - 15 Jun 2017

Getting the same error...

Object doesn't support property or method 'closest'

This not the reason for?.. https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/templates/atum/js/template.js#L17

avatar C-Lodder
C-Lodder - comment - 15 Jun 2017

That's just the function for this: https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/templates/atum/js/template.js#L137

Supposed to be like jQuery's closest() function

avatar wilsonge
wilsonge - comment - 15 Jun 2017

In that case https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/templates/atum/js/template.js#L137 this line should be var firstLevel = closest(allLinks[i], '.collapse-level-1'); rather than the current line?

avatar C-Lodder
C-Lodder - comment - 7 Jul 2017

@Bakual - could you try the above and see if you still get the same error?

avatar Bakual
Bakual - comment - 7 Jul 2017

The change suggested by @wilsonge seems to fix the first error indeed.

avatar C-Lodder
C-Lodder - comment - 9 Jul 2017

PR: #17029

avatar franz-wohlkoenig franz-wohlkoenig - change - 9 Jul 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-07-09 15:08:19
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 9 Jul 2017
Closed_Date 2017-07-09 15:08:19 2017-07-09 15:08:20
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 9 Jul 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 9 Jul 2017

closed as having PR.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16688.

avatar joomla-cms-bot
joomla-cms-bot - comment - 9 Jul 2017

Add a Comment

Login with GitHub to post a comment