[wp-trac] [WordPress Trac] #46110: IE11: JS "Syntax error" related to wp-polyfill-formdata
WordPress Trac
noreply at wordpress.org
Sat Jan 26 12:33:27 UTC 2019
#46110: IE11: JS "Syntax error" related to wp-polyfill-formdata
--------------------------+-----------------------------
Reporter: afercia | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.0
Severity: normal | Keywords: has-screenshots
Focuses: javascript |
--------------------------+-----------------------------
In Internet Explorer 11, there's a JavaScript "Syntax error" related to
`wp-polyfill-formdata`. The error happens in various pages, e.g. in
`edit.php` and `post.php`.
[[Image(http://cldup.com/-UPS1EV0FC.png)]]
IE11 doesn't support "arrow functions" and other ES6 features in that
file. Asked for feedback on Slack #core-editor and it was pointed out that
seems core is using the wrong file from the package.
Wrong version used in core:
https://github.com/WordPress/wordpress-
develop/blob/e01f30a/tools/webpack/packages.js#L104
Correct version used in the Gutenberg plugin:
https://github.com/WordPress/gutenberg/blob/2d7035b/lib/client-
assets.php#L619
Introduced in [43719] /Cc @omarreiss @atimmer
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46110>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list