# New Safari \<10.1 compatibility issue \[resolved\]

**URL:** https://meta.discourse.org/t/new-safari-10-1-compatibility-issue-resolved/116674
**Category:** Support
**Created:** [2 mei 2019 om 09:18 UTC](https://meta.discourse.org/t/new-safari-10-1-compatibility-issue-resolved/116674 "2019-05-02T09:18:00Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)
#### Post date: [2 mei 2019 om 09:18 UTC](https://meta.discourse.org/t/new-safari-10-1-compatibility-issue-resolved/116674/1 "2019-05-02T09:18:00Z")

</div>

A forum member reported that she was unable to access [https://se23.life](https://se23.life) this morning on her iPad. In the logs there are lots of errors regarding “e.getRootNode is not a function”. I asked her to try in [safe mode](https://meta.discourse.org/t/53504?silent=true) and when she did, the problem persisted (so I don’t think this problem relates to plugins or customisation)

The stack trace identified in the error is Ke@[https://se23.life/assets/ember\_jquery-a40c13c332a81d765d3281335e4a756ef34f0d72a592a96b7e7b37b02232](https://se23.life/assets/ember_jquery-a40c13c332a81d765d3281335e4a756ef34f0d72a592a96b7e7b37b02232)

The user agent is “Mozilla/5.0 (iPad; CPU OS 10\_2 like Mac OS X) AppleWebKit/602.3.12 (KHTML, like Gecko) Version/10.0 Mobile/14C92 Safari/602.1”

Is it possible the version of Safari is the problem?

I note on the `getRootNode` [browser compatibility matrix](https://developer.mozilla.org/en-US/docs/Web/API/Node/getRootNode), it was only supported since version Safari version 10.1, and the user agent indicates version 10

---

<div class="post-metadata">

### Author: ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)
#### Post date: [2 mei 2019 om 09:30 UTC](https://meta.discourse.org/t/new-safari-10-1-compatibility-issue-resolved/116674/2 "2019-05-02T09:30:21Z")

</div>

Okay I’ve done some more digging in the Discourse code base.

I found one reference to `getRootNode`, and it was added six days ago by @j.jaffeux (no personal blame intended by my post). The file is [vendor/assets/javascripts/jquery.js](https://github.com/discourse/discourse/commit/9f07ced6989d93fd3c68ca5a985e50bd1234b625#diff-18de83a8bb7b63c7f40207000cf6984c) (note that you may need to click to expand in the github diff as it’s a large file)

[https://github.com/discourse/discourse/commit/9f07ced6989d93fd3c68ca5a985e50bd1234b625#diff-18de83a8bb7b63c7f40207000cf6984c](https://github.com/discourse/discourse/commit/9f07ced6989d93fd3c68ca5a985e50bd1234b625#diff-18de83a8bb7b63c7f40207000cf6984c)

I believe this change has inadvertently affected backward compatibility with older browsers that we might hope that Discourse would continue to support (the user in my case was using an iPad Mini 2 running iOS 10.2, which is by no means prehistoric)

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [2 mei 2019 om 09:54 UTC](https://meta.discourse.org/t/new-safari-10-1-compatibility-issue-resolved/116674/3 "2019-05-02T09:54:12Z")

</div>

Yes it’s a bug of jQuery 3.4 which is supposed to support this version of safari.

Looks like it’s been fixed 3 days ago: [Core: Make isAttached work with iOS 10.0-10.2 · jquery/jquery@7dddb19 · GitHub](https://github.com/jquery/jquery/commit/7dddb19ca4bca9685adb734c76dcf72c3f610007)

And jquery 3.4.1 [jQuery 3.4.1: triggering focus events in IE and finding root elements in iOS 10 | Official jQuery Blog](https://blog.jquery.com/2019/05/01/jquery-3-4-1-triggering-focus-events-in-ie-and-finding-root-elements-in-ios-10/) just has been released, will update it.

---

<div class="post-metadata">

### Author: ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)
#### Post date: [2 mei 2019 om 09:54 UTC](https://meta.discourse.org/t/new-safari-10-1-compatibility-issue-resolved/116674/4 "2019-05-02T09:54:49Z")

</div>

Excellent, thank you!

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [2 mei 2019 om 10:00 UTC](https://meta.discourse.org/t/new-safari-10-1-compatibility-issue-resolved/116674/5 "2019-05-02T10:00:14Z")

</div>

Will be fixed by:

[https://github.com/discourse/discourse/pull/7470](https://github.com/discourse/discourse/pull/7470)

Thanks for report

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [2 mei 2019 om 16:00 UTC](https://meta.discourse.org/t/new-safari-10-1-compatibility-issue-resolved/116674/6 "2019-05-02T16:00:00Z")

</div>

This topic was automatically closed after 6 hours. New replies are no longer allowed.
