HS activate: set data-hyperscript-powered attribute on activation

Upstream convention — elements wired up by hyperscript carry
data-hyperscript-powered='true' so callers can find them. Net: core/bootstrap
17→19.
This commit is contained in:
2026-04-23 17:36:00 +00:00
parent 1213ee04c7
commit 1cd81e5369
2 changed files with 2 additions and 0 deletions

View File

@@ -82,6 +82,7 @@
(and src (not (= src prev))) (and src (not (= src prev)))
(dom-set-data el "hs-script" src) (dom-set-data el "hs-script" src)
(dom-set-data el "hs-active" true) (dom-set-data el "hs-active" true)
(dom-set-attr el "data-hyperscript-powered" "true")
(let ((handler (hs-handler src))) (handler el)))))) (let ((handler (hs-handler src))) (handler el))))))
;; ── Boot: scan entire document ────────────────────────────────── ;; ── Boot: scan entire document ──────────────────────────────────

View File

@@ -82,6 +82,7 @@
(and src (not (= src prev))) (and src (not (= src prev)))
(dom-set-data el "hs-script" src) (dom-set-data el "hs-script" src)
(dom-set-data el "hs-active" true) (dom-set-data el "hs-active" true)
(dom-set-attr el "data-hyperscript-powered" "true")
(let ((handler (hs-handler src))) (handler el)))))) (let ((handler (hs-handler src))) (handler el))))))
;; ── Boot: scan entire document ────────────────────────────────── ;; ── Boot: scan entire document ──────────────────────────────────