htmx/test/attributes
Jonathan Rietveld 7ef95e8963
Allow CSS selectors with whitespace in hx-trigger (#1913)
* 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
2023-11-16 13:45:46 -07:00
..
2021-02-05 11:00:03 -07:00
2022-12-03 16:56:15 -06:00
2023-11-02 16:40:33 -06:00
2022-07-11 16:29:40 -06:00
2023-07-17 11:36:04 -04:00
2022-10-30 13:49:29 -06:00
2022-01-17 13:11:09 -07:00