bigskysoftware / bigskysoftware/htmx-extensions

id's with dots don't work

Open
#152 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
284
Forks
88
PR merge metrics
No merged PRs in 30d

Description

this line is used to look for templates:
`var template = htmx.find('#' + templateName)`

It probably uses querySelector which requires the dots to be escaped. Its probably best to just use this:
`var template = document.getElementById(templateName)`

cheers

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.