* Allow CSS selectors with whitespace in `hx-trigger`
Parsing of `hx-trigger` scans for whitespace, so if a CSS selector is used that contains whitespace, e.g. `form input`, a syntax error is raised.
A workaround is implemented by allowing such a CSS selector to be wrapped in either curly braces or parentheses.
* Add explanation whitespace in CSS selector to docs
* Tests for CSS selectors containing whitespace
* Use faster RegEx test, remove redundant variable declarations
* Added Descendant Combinator support to `root` and `target` modifiers
* Add missing semicolon
* Tests for descendant combinators in `root` and `target` modifiers
* Improve descendant combinator test coverage
* allow user to override Content-Type header
* reorder the code so it won't use userSetContentType variable
* remove userSetContentType
* clarification
* remove unrelated changes
---------
Co-authored-by: gbourant <root@gbourant.com>
* Added a Django + HTMX forms link
- Added a Django server example link to "How to create a Django form (using HTMX) in 90 seconds 🐎".
- This article has received over 10k views and positive comments so far. I wrote the article; I would have benefitted from seeing it when I was first learning to use HTMX.
* Update server-examples.md
Appended to the list as requested
* Current behavior testing
Testing current library behavior
* Test should remove correct handler
* Add question in htmx:confirm event detail
* Allow skipping window.confirm
* Additional test without hx-confirm value
* Wrap htmx.off in finally
* More correct assertion in case of no calls to confirm
* Remove erroneously added formatting
* Remove erroneously added formatting
* Documentation, fix loop
---------
Co-authored-by: mat <matt@techspace.asia>
responseInfo.pathInfo.anchor is assumed to be an ID here, so use getElementById instead of querySelector, which doesn't accept all valid characters (for example parentheses)
* Write WS and SSE test backend in node
* Refactor pages so that the URLs work
* Add tab highlighting script
* Fix stream with multiple events
* Fix highlighting on ext links
* Refactor WS code
* Support event trigger tests
* Add some jitter to the intervals
* Delete old go backend
* Update README with new info and credits
* Update top-level README
* Move ws to dev dependencies
* Remove extraneous go server
* Fix misplace comment
* add missing quotation mark
* make `.htmx-indicator` unsortable
* change cursors to indicate grabbable items
* bug fix:
bug:
when an item is dragged fast enough before the previous request was
completed, dropping after request completion resulted in the addition
of an extra item to the list.
fix:
disable sortable on End event, and re-enable it on htmx:afterSwap.
* add a few inline comments + better naming