You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 28, 2018. It is now read-only.
We currently have no fallback for Turbolinks.replace() / render foo, change: :bar when the browser doesn't support Turbolinks / pushState.
I spent all morning trying to make the tests for that function pass in IE 9 but couldn't find a way to reliably parse a full HTML document.
If we parse the string with ActiveXObject, transferring nodes with adoptNode doesn't work.
If we parse the string with documentElement.cloneNode like we do now, we can't parse the <head>, nor the attributes on the <body>. innerHTML = doesn't work on the document, body and head.
In the end I just pushed some changes that made replace() work when passing an HTML fragment and a change option, but I don't feel confident this won't break in the wild.
Are we cool with Turbolinks.replace() not working in IE 9 and lower? If so I think we should make that function raise an error when Turbolinks is disabled (+ update the docs of course).
Maybe @aishek (I saw a PR about fixing wiselinks for IE8) or @igor-alexandrov might be able to offer any suggestions about this issue since wiselinks allows replacing portions of the html?
I've done an experimental shim for IE 8 and 9 to support the Turbolinks.replace() method of Turbolinks 3, you can grab the code here.
It isn't ready for production-ready yet, but the basic features are OK.
You can see an online demo here, which is built with the PHP framework Laravel.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We currently have no fallback for
Turbolinks.replace()
/render foo, change: :bar
when the browser doesn't support Turbolinks / pushState.I spent all morning trying to make the tests for that function pass in IE 9 but couldn't find a way to reliably parse a full HTML document.
ActiveXObject
, transferring nodes withadoptNode
doesn't work.documentElement.cloneNode
like we do now, we can't parse the<head>
, nor the attributes on the<body>
.innerHTML =
doesn't work on the document, body and head.In the end I just pushed some changes that made
replace()
work when passing an HTML fragment and achange
option, but I don't feel confident this won't break in the wild.Are we cool with
Turbolinks.replace()
not working in IE 9 and lower? If so I think we should make that function raise an error when Turbolinks is disabled (+ update the docs of course).cc @dhh @reed
The text was updated successfully, but these errors were encountered: