From d1ff69d88314d58fae326e8dd0ee13c8dd6f5bf9 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sun, 18 Oct 2020 10:35:42 +0100 Subject: [PATCH] Some docs cleanup Fix some typos, and the location of the *event-header* extension as linked to in the latest release notes. --- www/docs.md | 2 +- www/extensions/{extension-header.md => event-header.md} | 7 ++++--- www/reference.md | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) rename www/extensions/{extension-header.md => event-header.md} (90%) diff --git a/www/docs.md b/www/docs.md index 8433eb55..8ad1e088 100644 --- a/www/docs.md +++ b/www/docs.md @@ -470,7 +470,7 @@ When a user hits the back button, htmx will retrieve the old content from storag ### Specifying History Snapshot Element -By default, htmx will use the `body` to take and restore the history snapshop from. This is usually the right thing, but +By default, htmx will use the `body` to take and restore the history snapshot from. This is usually the right thing, but if you want to use a narrower element for snapshotting you can use the [hx-history-elt](/attributes/hx-history-elt) attribute to specify a different one. diff --git a/www/extensions/extension-header.md b/www/extensions/event-header.md similarity index 90% rename from www/extensions/extension-header.md rename to www/extensions/event-header.md index abb029da..4704a47e 100644 --- a/www/extensions/extension-header.md +++ b/www/extensions/event-header.md @@ -3,10 +3,11 @@ layout: layout.njk title: htmx - high power tools for html --- -## The `ajax-header` Extension +## The `event-header` Extension -This extension adds the `Triggering-Event` header to requests. The value -of the header is a JSON serialized version of the event that triggered the request. +This extension adds the `Triggering-Event` header to requests. The value of +the header is a JSON serialized version of the event that triggered the +request. ### Usage diff --git a/www/reference.md b/www/reference.md index 023ac63a..e6532bb9 100644 --- a/www/reference.md +++ b/www/reference.md @@ -71,8 +71,8 @@ title: htmx - Attributes | `HX-Active-Element-Value` | the `value` of the active element if it exists | `HX-Active-Element` | the `id` of the active element if it exists | `HX-Current-URL` | the current URL of the browser -| `HX-Event-Target` | the `id` of the original event target -| `HX-Prompt` | the user response to an [ic-prompt](/attributes/hx-prompt) +| `HX-Event-Target` | the `id` of the original event target +| `HX-Prompt` | the user response to an [hx-prompt](/attributes/hx-prompt) | `HX-Request` | always `true` | `HX-Target` | the `id` of the target element if it exists | `HX-Trigger-Name` | the `name` of the triggered element if it exists