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
..
2023-11-06 18:03:43 -07:00
2023-03-18 11:29:38 -04:00
2023-11-06 18:03:43 -07:00
2023-03-18 11:29:38 -04:00
2023-04-05 07:47:37 -04:00
2023-04-06 11:04:36 -06:00

Running The Website Locally

The htmx.org website is built with Zola. To run the site, install Zola; then, from the root of the repository:

cd www
zola serve

The site should then be available at http://localhost:1111