From 7a097dc49b72ad9ed60a19b83c78a8868411efc5 Mon Sep 17 00:00:00 2001 From: Ben Croker <57572400+bencroker@users.noreply.github.com> Date: Thu, 28 May 2020 01:07:32 +0200 Subject: [PATCH 1/5] Update hx-target.md --- www/attributes/hx-target.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/attributes/hx-target.md b/www/attributes/hx-target.md index 2fd409d3..dee4398e 100644 --- a/www/attributes/hx-target.md +++ b/www/attributes/hx-target.md @@ -9,7 +9,7 @@ The `hx-target` attribute allows you to target a different element for swapping request. The value of this attribute can be: * a CSS query selector of the element to target - * `this` which indicates that the element that the `ic-target` attribute is on is the target + * `this` which indicates that the element that the `hx-target` attribute is on is the target * `closest ` which will find the closest parent ancestor that matches the given CSS selector. (e.g. `closest tr` will target the closest table row to the element) From a9ade676b94ab7d8407f87c595899d12cd99843d Mon Sep 17 00:00:00 2001 From: Ben Croker <57572400+bencroker@users.noreply.github.com> Date: Thu, 28 May 2020 01:10:24 +0200 Subject: [PATCH 2/5] Update hx-indicator.md --- www/attributes/hx-indicator.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/attributes/hx-indicator.md b/www/attributes/hx-indicator.md index cf1740d1..c408c7df 100644 --- a/www/attributes/hx-indicator.md +++ b/www/attributes/hx-indicator.md @@ -54,12 +54,12 @@ CSS. Here is an example that uses `display` rather than opacity: } ``` -Note that the target of the `ic-indicator` selector need not be the exact element that you +Note that the target of the `hx-indicator` selector need not be the exact element that you want to show: it can be any element in the parent hierarchy of the indicator. Finally, note that the `htmx-request` class by default is added to the element causing the request, so you can place an indicator inside of that element and not need to explictly -call it out with the `ic-indicator` attribute: +call it out with the `hx-indicator` attribute: ```html