Jquery cannot be loaded as a content script

By design Issue #7735735

Details

Author
Lena T.
Created
May 30, 2016
Privacy
This issue is public.
Reports
Reported by 4 people

Sign in to watch or report this issue.

Steps to reproduce

I found out that JQuery (in my case, v2.2.4 uncompressed) cannot be loaded a content script. It causes two errors "SCRIPT5022: SyntaxError". Other scripts can’t definitely affect this, since I tried to load only jquery, nothing except it.

Attachments

1 attachment

Comments and activity

  • Windows 10 Insider Preview 14352
    Edge 38.14352.1002.0
    EdgeHtml 14.14352

    The aforesaid problem appear with e.g. this extension (https://t.co/SbNfuofIni). Extension pages work well, pop-up works well (apart, it impossible to set its size bigger than 400x440 pixels), but regarding content scripts, as I’ve mentioned above, JQuery (no modifications, taken from the official website) refuses to be loaded correctly.

  • Microsoft Edge Team

    Changed Assigned To to “Colleen W.”

    Changed Status to “Site Outreach”

  • Thanks for the feedback. We are still investigating this issue and trying to understand if it’s a bug in jQuery or extensions in Edge.

  • Microsoft Edge Team

    Changed Status from “Site Outreach” to “By design”

  • The two lines that are throwing errors are as follows:

    div.querySelectorAll(“*,:x”);
    matches.call( div, "[s!=’’]:x" );

    It looks like these are by design by JQuery and that they are appropriately caught in try/catch blocks. They shouldn’t affect loading of JQuery at all.

You need to sign in to your Microsoft account to add a comment.

Sign in