Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In IE11 and at least one Windows 7 Mobile browser, the call to window.matchMedia("") fails with "Invalid argument" as an empty string is passed. If you pass a random suitable media selector such as "(min-height:250px)" then it does not fail.
This is fixed at www.wwoof.org.uk but broken at www.edensave.com (for now).
The error shows in the IE console - see attached photo below.
The "Mobile Menu" button does not show when the IE screen is slimmed down.
Thanks Chris
Comment | File | Size | Author |
---|---|---|---|
AdaptiveThemeMatchMedia070214.png | 23.39 KB | chriscant |
Comments
Comment #1
Jeff Burnz CreditAttribution: Jeff Burnz commentedSomehow this was overlooked, this need to be fixed asap.
Comment #2
Jeff Burnz CreditAttribution: Jeff Burnz commentedhttp://stackoverflow.com/questions/16470633/jquery-not-loading-in-ie9-down more info here, for reference.
Comment #3
xenophyle CreditAttribution: xenophyle commentedUsing the most recent version of matchMedia.addListener.js fixed this for me.
It looks like this bug was fixed here:
https://github.com/paulirish/matchMedia.js/commit/b875b96d1e7dc382e916e6...
Comment #4
hwasem CreditAttribution: hwasem commentedThank you, Xenophyle, for the link. I modified line 4 in the sites/all/themes/adaptivetheme/at_core/scripts/matchMedia.addListener.js file per your link and the "invalid argument" error is gone.
Comment #6
Jeff Burnz CreditAttribution: Jeff Burnz commentedOK, finally I have updated to the latest version of matchMedia.addListener.js
Sorry for the long delay and thank-you for the bug report and comments.