From 2f5a67f417d726dc3fe33e8305bb8daf473dc67b Mon Sep 17 00:00:00 2001 From: Ayaskant Mishra Date: Tue, 13 Aug 2024 12:44:31 +0530 Subject: [PATCH 1/2] updated broken document link for out of band swaps --- src/ws/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ws/README.md b/src/ws/README.md index 67e3acf..b51f7d8 100644 --- a/src/ws/README.md +++ b/src/ws/README.md @@ -48,7 +48,7 @@ WebSockets extension support two configuration options: The example above establishes a WebSocket to the `/chatroom` end point. Content that is sent down from the websocket will be parsed as HTML and swapped in by the `id` property, using the same logic -as [Out of Band Swaps](https://htmx.org/reference/hx-swap-oob.md). +as [Out of Band Swaps](https://htmx.org/docs/#oob_swaps). As such, if you want to change the swapping method (e.g., append content at the end of an element or delegate swapping to an extension), From 42b8aa6b873c9738d1b87a396411f70da857562c Mon Sep 17 00:00:00 2001 From: Ayaskant Mishra Date: Tue, 13 Aug 2024 21:48:45 +0530 Subject: [PATCH 2/2] updated link to hx-swap-oob attribute page As @Telroshan suggested, the link points to a more comprehensive guide --- src/ws/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ws/README.md b/src/ws/README.md index b51f7d8..eaadd19 100644 --- a/src/ws/README.md +++ b/src/ws/README.md @@ -48,7 +48,7 @@ WebSockets extension support two configuration options: The example above establishes a WebSocket to the `/chatroom` end point. Content that is sent down from the websocket will be parsed as HTML and swapped in by the `id` property, using the same logic -as [Out of Band Swaps](https://htmx.org/docs/#oob_swaps). +as [Out of Band Swaps](https://htmx.org/attributes/hx-swap-oob/). As such, if you want to change the swapping method (e.g., append content at the end of an element or delegate swapping to an extension),