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
Preload extension fails with Safari on macOS #2504
Open
michrome opened this issue
Apr 24, 2024
· 2 comments
· May be fixed by bigskysoftware/htmx-extensions#24
Open
Preload extension fails with Safari on macOS #2504
michrome opened this issue
Apr 24, 2024
· 2 comments
· May be fixed by bigskysoftware/htmx-extensions#24
Comments
Would replacing |
I wonder if the same fix than in #2391 could be applied here ? Seems like the same underlying issue |
michrome
added a commit
to michrome/htmx-extensions
that referenced
this issue
May 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
The preload extension fails to initialise on Safari, with the error
TypeError: null is not an object (evaluating 'event.target.querySelectorAll') - preload.js:138
.Line 138 in
[preload.js](https://github.com/bigskysoftware/htmx/blob/master/src/ext/preload.js)
is:It appears Safari returns
null
forevent.target
when other browsers do not.Versions
Example for reproduction
The text was updated successfully, but these errors were encountered: