From a0ecacad4a88450b5978053a70bf258a3b37a3d9 Mon Sep 17 00:00:00 2001 From: MichaelWest22 Date: Tue, 8 Sep 2026 12:56:14 +1200 Subject: [PATCH] Add hx-partial tag handling to v2 --- src/htmx.js | 61 ++++++++- test/attributes/hx-partial.js | 191 +++++++++++++++++++++++++++ test/index.html | 1 + www/content/attributes/hx-partial.md | 166 +++++++++++++++++++++++ www/content/docs.md | 22 +++ www/content/events.md | 55 ++++++++ www/content/reference.md | 5 + 7 files changed, 499 insertions(+), 2 deletions(-) create mode 100644 test/attributes/hx-partial.js create mode 100644 www/content/attributes/hx-partial.md diff --git a/src/htmx.js b/src/htmx.js index 2ceca7436..1de9274cd 100644 --- a/src/htmx.js +++ b/src/htmx.js @@ -601,6 +601,8 @@ var htmx = (function() { * @returns {DocumentFragmentWithTitle} */ function makeFragment(response) { + // convert custom tags to