UiKit.js throwing SCRIPT5022: InvalidCharacterError in Edge

Fixed Issue #15700588


Best G.
Jan 30, 2018
This issue is public.
Found in
  • Microsoft Edge
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

When UiKit attempts to run the code, used by its sticky component, that adds classes to the sticky object based on its status, it throws SCRIPT5022: InvalidCharacterError, attached is a picture containing the section of code that is throwing the error, and the uikit library itself. At first glance it doesn’t look like the code itself should be problematic.

I also want to note that both Google Chrome (63.0.3239.132) and Mozilla Firefox Developers Edition (59.0b5) both do not throw any errors and have the uikit script working as expected.

Browser Version:
Microsoft Edge 41.16299.15.0
Microsoft EdgeHTML 16.16299


2 attachments

Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “Steven K.”

  • Thanks for reporting this issue! Can you debug and see what the value of the cls variable is when this exception is thrown?

  • Microsoft Edge Team

    Changed Assigned To to “Travis L.”

  • The values are
    element = nav.uk-navbar-container.uk-light.bg-dark-semi.shadowed-bg,
    cls = “uk-navbar-sticky circuit-bg-semi_ circuit-special active”

  • Microsoft Edge Team

    Changed Status to “Fixed”

  • Thanks! It looks like we had a bug in our logic in 16299 that resulted in an InvalidCharacterError being thrown when that function was called with a parameter that contained spaces. We’ve since addressed this in recent Windows Insider Preview builds and the fix will ship more broadly in our next release. 

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

Sign in