jquery/jquery-ui

Syntax error in jquery-ui.min.js used in MS WebBrowser control (IE11 mode) in jQuery-UI 1.13.3 custom emitted by Download Builder

Closed this issue · 1 comments

For custom jQuery-UI packages generated by the Download Builder at https://jqueryui.com/download/ :

The minified jquery-ui.min.js throws a Syntax error in line 6 when used in the Microsoft WebBrowser control which is based on IE https://learn.microsoft.com/en-us/dotnet/desktop/winforms/controls/webbrowser-control-overview?view=netframeworkdesktop-4.8 . The non-minified file jquery-ui.js works fine as did the prior version (1.13.2) minified jquery-ui.min.js. The issue is also not present in the full (uncustomized) download of jQuery-UI 1.3.3.

After adding line-breaks to narrow down the issue it's still in line 6, i.e. the first line of code. The syntax error is caused by the arrow function that was generated by the minifier, and which is unsupported on the WebBrowser control (and all versions of IE https://caniuse.com/arrow-functions ). Notably, the prior jQuery-UI 1.13.2 jquery-ui.min.js file used the "function" keyword.

This issue makes it difficult to use the the Download Builder (and Themeroller, which depends on it).

After submitting this issue I came to realize it's not an issue of jQuery-UI itself but the build system of the Download Builder which has a separate repo. Therefore I created issue #629 there and close the issue here.
jquery/download.jqueryui.com#629