Skip to content

Javascript error due to obsolete jQuery version - upgrade to last jQuery v1.x release? #1643

@Toutouwai

Description

@Toutouwai

Short description of the issue

If you have this valid jQuery code in the PW admin...

var $button = $('<button>Hello</button>').attr('type', 'button');

...then you get this JavaScript error:

2022-11-13_140358

This is just an example to make a general point about the kind of errors that can be caused by the PW core using a version of jQuery (v1.8.3) that dates back to 2012. And you can't necessarily code around this kind of bug because you might want to use a jQuery plugin in the PW admin that isn't expecting to be running with a ten-year-old version of jQuery.

@ryancramerdesign, is there a policy/plan around when libraries that are bundled with the core get upgraded?

Could we at least upgrade to the last jQuery v1.x release? @matjazpotocnik reported in 2017 that he switched the core jQuery to v1.12.1 and didn't experience problems: https://processwire.com/talk/topic/17806-old-jquery/?do=findComment&comment=156381

Setup/Environment

  • ProcessWire version: 3.0.206

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions