From 1cd81e5369de2bc12d101de4d1bc94ece20963a7 Mon Sep 17 00:00:00 2001 From: giles Date: Thu, 23 Apr 2026 17:36:00 +0000 Subject: [PATCH] HS activate: set data-hyperscript-powered attribute on activation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Upstream convention — elements wired up by hyperscript carry data-hyperscript-powered='true' so callers can find them. Net: core/bootstrap 17→19. --- lib/hyperscript/integration.sx | 1 + shared/static/wasm/sx/hs-integration.sx | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/hyperscript/integration.sx b/lib/hyperscript/integration.sx index 147d7350..e989d2ea 100644 --- a/lib/hyperscript/integration.sx +++ b/lib/hyperscript/integration.sx @@ -82,6 +82,7 @@ (and src (not (= src prev))) (dom-set-data el "hs-script" src) (dom-set-data el "hs-active" true) + (dom-set-attr el "data-hyperscript-powered" "true") (let ((handler (hs-handler src))) (handler el)))))) ;; ── Boot: scan entire document ────────────────────────────────── diff --git a/shared/static/wasm/sx/hs-integration.sx b/shared/static/wasm/sx/hs-integration.sx index 147d7350..e989d2ea 100644 --- a/shared/static/wasm/sx/hs-integration.sx +++ b/shared/static/wasm/sx/hs-integration.sx @@ -82,6 +82,7 @@ (and src (not (= src prev))) (dom-set-data el "hs-script" src) (dom-set-data el "hs-active" true) + (dom-set-attr el "data-hyperscript-powered" "true") (let ((handler (hs-handler src))) (handler el)))))) ;; ── Boot: scan entire document ──────────────────────────────────