From d6037bde673711090ca8bf8adac1f1d635c7aae0 Mon Sep 17 00:00:00 2001 From: David Guillot Date: Tue, 6 Sep 2022 15:05:19 +0200 Subject: [PATCH] Minor changes in docs (#1033) * Minor change in active-search docs You don't want people to believe they need a POST request to run a search query. * More limitations of hx-preserve --- www/attributes/hx-preserve.md | 3 +-- www/examples/active-search.md | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/www/attributes/hx-preserve.md b/www/attributes/hx-preserve.md index c383432f..7a5ed7d4 100644 --- a/www/attributes/hx-preserve.md +++ b/www/attributes/hx-preserve.md @@ -10,8 +10,7 @@ Elements with `hx-preserve` set are preserved by `id` when htmx updates any ance You *must* set an unchanging `id` on elements for `hx-preserve` to work. The response requires an element with the same `id`, but its type and other attributes are ignored. -Note that some elements cannot unfortunately be preserved properly, such as iframes or certain types -of videos. In these cases we recommend the [morphdom extension](/extensions/morphdom-swap/), which does a more elaborate DOM +Note that some elements cannot unfortunately be preserved properly, such as `` (focus and caret position are lost), iframes or certain types of videos. To tackle some of these cases we recommend the [morphdom extension](/extensions/morphdom-swap/), which does a more elaborate DOM reconciliation. ### Notes diff --git a/www/examples/active-search.md b/www/examples/active-search.md index b21e48dd..b8d2ff04 100644 --- a/www/examples/active-search.md +++ b/www/examples/active-search.md @@ -17,7 +17,7 @@ We start with a search input and an empty table: