htmx/test/attributes
Jonathan 99285cd5c3
fix for hx-swab-oob within web components (#2846)
* Failing test for oob-swap within web components

* hx-swap-oob respects shadow roots

* Lint and type fixes

* fix jsdoc types for rootNode parameter

* Fix for linter issue I was confused about before

* oob swaps handle global correctly

* swap uses contextElement if available, document if not

Previous a commit made swapOptions.contextElement a required field. This
could have harmful ramifications for extensions and users, so instead,
the old behavior of assuming document as a root will be used if the
contextElement is not provided.

* rootNode parameter is optional in oobSwap

If not provided, it will fall back to using document as rootNode. jsdocs
have been updated for oobSwap and findAndSwapElements accordingly.
2024-10-02 19:44:41 -06:00
..
2023-12-21 13:22:10 -05:00
2023-12-21 13:22:10 -05:00
2023-12-21 13:22:10 -05:00
2023-12-21 13:22:10 -05:00
2023-12-21 13:22:10 -05:00
2023-12-21 13:22:10 -05:00
2023-12-21 13:22:10 -05:00
2023-12-21 13:22:10 -05:00
2023-12-24 16:37:51 -07:00
2023-12-21 13:22:10 -05:00
2023-12-21 13:22:10 -05:00
2023-12-21 13:22:10 -05:00
2023-12-21 13:22:10 -05:00
2024-01-18 10:20:34 -05:00
2023-12-21 13:22:10 -05:00
2023-12-21 13:22:10 -05:00
2023-12-21 13:22:10 -05:00
2023-12-21 13:22:10 -05:00
2024-02-29 11:11:46 -05:00
2023-12-21 13:22:10 -05:00
2023-12-21 13:22:10 -05:00
2024-10-02 19:21:02 -06:00
2023-12-21 13:22:10 -05:00