Open pragmatta opened 3 months ago
If you have a hx-target that is an id that has special characters like the colon fails because they need to be escaped for document.querySelectorAll.
document.querySelectorAll
Same happens on console and you can fix it by adding a \\.
\\
HTML spec allows at least hyphens and colons and dots to be used. https://www.w3.org/TR/html4/types.html#:~:text=ID%20and%20NAME%20tokens%20must,periods%20(".").
Created a fix and a pull request for this: https://github.com/bigskysoftware/htmx/pull/2602/files
If you have a hx-target that is an id that has special characters like the colon fails because they need to be escaped for
document.querySelectorAll
.Same happens on console and you can fix it by adding a
\\
.HTML spec allows at least hyphens and colons and dots to be used. https://www.w3.org/TR/html4/types.html#:~:text=ID%20and%20NAME%20tokens%20must,periods%20(".").