WordPress.org

Make WordPress Core

Opened 12 days ago

Last modified 7 days ago

#48523 new defect (bug)

jquery.js parse error in IE8

Reported by: jqz Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.2.1
Component: External Libraries Keywords:
Focuses: javascript Cc:
PR Number:

Description (last modified by SergeyBiryukov)

This is a follow-up to #47020.

The minification of jquery.js in [45342] is not compatible with IE<=8.

The error is:

SCRIPT1028: Expected identifier, string or number
jquery.js (4,13727)

It's caused by

propFix:{for:"htmlFor",class:"className"}

because for and class, being reserved words, need to be in quotes.

I know that WordPress 5.2.x no longer supports IE8 (see #47761). However the change has been ported back as far as WordPress 4.5.x ([46027]), which I'm pretty sure is supposed to support IE8.

Change History (3)

#2 @SergeyBiryukov
11 days ago

  • Description modified (diff)
  • Focuses javascript added

#3 @SergeyBiryukov
7 days ago

  • Version changed from trunk to 5.2.1
Note: See TracTickets for help on using tickets.