fix(build): reject empty slhx guards

Treat empty static data-slhx-on lists and empty data-slhx-confirm messages as build errors, so authors do not silently disable dispatch or confirmation guards with blank attributes.

req: convention/002

req: convention/004

req: diagnostics/002
This commit is contained in:
slhx agent
2026-06-01 21:01:29 +02:00
parent b98820e819
commit 0315044f53
2 changed files with 29 additions and 6 deletions
+1 -1
View File
@@ -870,7 +870,7 @@ All forms support returning `impl IntoEffect` and compose through tuples.
003 `data-slhx-debounce` and `data-slhx-throttle` support simple millisecond values. No trigger mini-language in core.
### req: convention/004
004 `data-slhx-confirm` dispatches a native `confirm()` before handler dispatch. Custom confirm UI belongs to integration crates.
004 `data-slhx-confirm` dispatches a native `confirm()` before handler dispatch. Static empty confirmation messages are build errors because they silently disable the guard in browsers. Custom confirm UI belongs to integration crates.
### req: convention/005
005 `data-slhx-every` dispatches a handle at a fixed interval while the element remains in the document. Duplicate timers per root are avoided.