From 5b2d1f15c5f0864ed937450ac0b0cf802ea27155 Mon Sep 17 00:00:00 2001 From: Ben Beecher <120373+gone@users.noreply.github.com> Date: Thu, 12 May 2022 18:44:52 -0400 Subject: [PATCH] Documentation fix (#890) --- www/extensions/server-sent-events.md | 4 ++-- www/extensions/web-sockets.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/www/extensions/server-sent-events.md b/www/extensions/server-sent-events.md index 92889f1e..e1a80056 100644 --- a/www/extensions/server-sent-events.md +++ b/www/extensions/server-sent-events.md @@ -108,9 +108,9 @@ Previous versions of htmx used a built-in tag `hx-sse` to implement Server Sent | Old Attribute | New Attribute | Comments | |--------------------------------|--------------------------|------------------| -| `hx-sse=""` | `hs-ext="sse"` | Use the `hx-ext="sse"` attribute to install the SSE extension into any HTML element. | +| `hx-sse=""` | `hx-ext="sse"` | Use the `hx-ext="sse"` attribute to install the SSE extension into any HTML element. | | `hx-sse="connect:"` | `sse-connect=""` | Add a new attribute `sse-connect` to the tag that specifies the URL of the Event Stream. This attribute must be in the same tag as the `hx-ext` attribute. | -| `hs-sse="swap:"` | `sse-swap=""` | Add a new attribute `sse-swap` to any elements that will be swapped in via the SSE extension. This attribute must be placed **on** or **inside of** the tag containing the `hx-ext` attribute. | +| `hx-sse="swap:"` | `sse-swap=""` | Add a new attribute `sse-swap` to any elements that will be swapped in via the SSE extension. This attribute must be placed **on** or **inside of** the tag containing the `hx-ext` attribute. | | `hx-trigger="sse:"` | NO CHANGE | any `hx-trigger` attributes do not need to change. The extension will identify these attributes and add listeners for any events prefixed with `sse:` | ### Additional SSE Resources diff --git a/www/extensions/web-sockets.md b/www/extensions/web-sockets.md index 7351eb16..23610a57 100644 --- a/www/extensions/web-sockets.md +++ b/www/extensions/web-sockets.md @@ -64,9 +64,9 @@ Previous versions of htmx used a built-in tag `hx-ws` to implement WebSockets. | Old Attribute | New Attribute | Comments | |-------------------------|----------------------|-------------------| -| `hx-ws=""` | `hs-ext="ws"` | Use the `hx-ext="ws"` attribute to install the WebSockets extension into any HTML element. | +| `hx-ws=""` | `hx-ext="ws"` | Use the `hx-ext="ws"` attribute to install the WebSockets extension into any HTML element. | | `hx-ws="connect:"` | `ws-connect=""` | Add a new attribute `ws-connect` to the tag that defines the extension to specify the URL of the WebSockets server you're using. | -| `hs-ws="send"` | `ws-send=""` | Add a new attribute `ws-send` to mark any child forms that should send data to your WebSocket server | +| `hx-ws="send"` | `ws-send=""` | Add a new attribute `ws-send` to mark any child forms that should send data to your WebSocket server | ### Source