-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make htmx IE11 compatible again + tests IE11 compatible #1687
Conversation
Yes, I added this https://github.com/thoov/mock-socket library to provide websocket mocks. At the first glance, it uses WebSockets could be tested by making our own mock and providing it via If we were to make it IE 11 compatible, there is a couple ways:
|
Thanks for your input! Just realized the old attribute is indeed mocked with a handwritten system, so I might as well just do that... I'll investigate and update this PR when I get the chance |
@Telroshan does |
Oh right @alexpetros, didn't even know that command existed to be honest, I was running Investigating! |
Well, turns out running @alexpetros did this happen before? |
What I can say is that when I pull the current dev branch, use node 15, and run
I know the test suite in headless mode is mildly finicky—it has a couple timing issues—but it's reliable enough that we can't really consider PRs that don't pass the CI. I'll do what I can to help of course, this is a big PR and I'm grateful for you working on it. |
I totally understand and agree that a PR not passing tests shouldn't be merged in. Thanks for your results, now I have to figure out why neither of the branches pass the tests locally in my case... I mean It's not a "it doesn't work all the time" scenario, I constantly get those same 4 errors when running npm run test, whether it's on dev on my PR's branch, so there has to be something I'll have to investigate some more, I'll probably start with the dev branch so my changes don't get in the way, but now I have at least the confirmation that what's happening for me on the upstream dev is absolutely not expected 😆 |
What's happening is definitely specific to your machine and very likely a timing problem with our tests; sucks that you have to be the one to figure that out, but that's just the limitation of the bandwidth that we have 😞 |
No worries, I'll figure it out eventually! |
So I uninstalled node (noticed I had node 16 and not 15...)
Kill me now UPDATE :
|
This person had the same issue with the local test setup: #1650 Can you open a separate issue for the test stuff and we'll consolidate your findings there? |
Yay tests finally pass on the pipeline with your fix in #1742 @alexpetros |
I know IE11 compatibility is almost a meme at this point, but as htmx 2 isn't that far ahead and with it the official end of IE11 compatibility, let's stick to the gimmick til the end!
Core changes:
URL
I also updated a lot of tests to be IE11 compatible:
ws-ext
tests, isn't IE11 compatibleHow to test on IE11
Let me know if it'd be relevant to add a section on the repo's README for contributors, about how to test in IE11, as it seems pretty common that new features / commits break IE11 compatibility
Allow sites to be reloaded in Internet Explorer
is enabledReload in Internet Explorer Mode
Windows + R
, run%systemroot%\system32\f12\IEChooser.exe
and select the tab to inspect