title actions produce error in IE11
See original GitHub issueAre you requesting a feature, reporting a bug or asking a question?
Bug
What is the current behavior?
When opening page with survey in Internet Explorer 11, code in file src\knockout\components\action-bar\action-bar.ts (and probably same in src\knockout\components\progress\buttons.ts) in method ko.components.register(...)
at line const container: HTMLDivElement = componentInfo.element.nextElementSibling;
returns undefined container because IE do not expose nextElementSibling on comment nodes. ResponsivityManager then crashes at line this.resizeObserver.observe(this.container.parentElement);
What is the expected behavior?
Make code return container to pass to ResponsivityManager class
How would you reproduce the current behavior (if this is a bug)?
Go open page in IE 11 https://surveyjs.io/Examples/Library (you also need to polyfill object.assign and ResizeObserver)
Provide the test code and the tested page URL (if applicable)
Tested page URL: https://surveyjs.io/Examples/Library
Test code
your_code_here
Specify your
- browser: IE 11
- browser version: 11.0.9600.17498 update version 11.0.15
- surveyjs platform (angular or react or jquery or knockout or vue): jquery
- surveyjs version: 1.8.56
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Script errors in Internet Explorer - Browsers - Microsoft Learn
A script error occurs in Internet Explorer, the webpage cannot be displayed correctly and you receive an error message.
Read more >Webpack "production" mode is causing an exception in IE11
The error message means that Promise itself has been polyfilled but you passed it the wrong kind of content. It's hard to locate...
Read more >Errors with => function in IE11 - Material Design for Bootstrap
One particular issue we are having is with the => function causing errors that are unrecoverable in IE11. There are 77 instances of...
Read more >Lightning Report in IE 11 error "Unable to get property '_ ...
3) On "Choose Report Type", select "Accounts, click [Create] ... The error will display again with various actions, but the error does not ......
Read more >Object expected in IE11 using SharePoint integration plug-in
We get this error when we open these quote documents in both IE11 and the CRM 2015/2013 client (Which opens the frame in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@digital88 We’ll check it @dmitrykurmanov Could you clarity the state of the issue? It is marked as related to v1.8.59 just has been released.
I’m still getting a console error in IE 11 from this.
https://plnkr.co/edit/UGB9Rhq2Vp8mYwRF
Earlier I was getting a different stack trace from my app (rather than plunkr) which was showing action-bar.ts as part of the stack trace
When I view the same survey in a modern browser (chrome 92) I can see that it’s rendering an
sv-action-bar
even though it’s empty.Normally I wouldn’t care about just a console error in IE 11. But my app is accessed through an unusually-configured embedded IE thing which throws these old school errors. And since each question has an
sv-action-bar
, the user has to click through this error once for each question in the survey