diff options
author | carson <carson@leaddyno.com> | 2021-01-04 09:22:15 -0700 |
---|---|---|
committer | carson <carson@leaddyno.com> | 2021-01-04 09:22:15 -0700 |
commit | 3c7dde7e1f4aee87d23bd40cb227a007cabc064c (patch) | |
tree | cd3d1e93f81ae44949e033c8437d2b1d3215f6cb | |
parent | 219c78262dfd38027c848523ded718b03ae36a62 (diff) | |
parent | b76169e131faed7e00aa3866288a3b8239fd4f68 (diff) | |
download | htmx-3c7dde7e1f4aee87d23bd40cb227a007cabc064c.tar.gz htmx-3c7dde7e1f4aee87d23bd40cb227a007cabc064c.zip |
Merge remote-tracking branch 'origin/dev' into dev
-rw-r--r-- | CHANGELOG.md | 2 | ||||
-rw-r--r-- | www/attributes/hx-preserve.md | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e92b65e..1ea82bac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,7 +14,7 @@ `HX-Active-Element-Name`, `HX-Active-Element` * Added the [`hx-preserve`](https://dev.htmx.org/attributes/hx-preserve) attribute, which allows you to preserve elements across requests (for example, to keep a video element playing properly) -* The [`path-deps](https://dev.htmx.org/extensions/path-deps/#refresh) now surfaces a small api +* The [path-deps](https://dev.htmx.org/extensions/path-deps/#refresh) now surfaces a small api for refreshing path dependencies manually in javascript * Now support the `from:` clause on [`hx-trigger`](https://dev.htmx.org/attributes/hx-trigger) to allow an element to respond to events on other elements. diff --git a/www/attributes/hx-preserve.md b/www/attributes/hx-preserve.md index f7bd5a4f..c70a3287 100644 --- a/www/attributes/hx-preserve.md +++ b/www/attributes/hx-preserve.md @@ -5,10 +5,9 @@ title: </> htmx - hx-preserve ## `hx-preserve` -The `hx-preserve` attribute allows you to keep a section of content constant between HTML replacement. When hx-preserve is set to `true`, an element preserved (by id) even if the -surrounding HTML is updated by htmx. +The `hx-preserve` attribute allows you to keep a section of content unchanged between HTML replacement. When hx-preserve is set to `true`, an element is preserved (by id) even if the surrounding HTML is updated by htmx. -Here is an example of a youtube embed, which would survive an htmx request: +Here is an example of a youtube embed, which would be unaffected an htmx request: ```html <div> @@ -18,4 +17,4 @@ Here is an example of a youtube embed, which would survive an htmx request: ### Notes -* `hx-select` is not inherited
\ No newline at end of file +* `hx-select` is not inherited |