From dc00e10ec0b01be45051a7805820a4dd59c0970c Mon Sep 17 00:00:00 2001 From: Virgil Date: Sat, 4 Apr 2026 00:42:29 +0000 Subject: [PATCH] feat(html): add standard boolean attribute helpers Co-Authored-By: Virgil --- docs/architecture.md | 5 +++ docs/index.md | 4 +-- node.go | 55 ++++++++++++++++++++++++++++++ node_test.go | 80 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 142 insertions(+), 2 deletions(-) diff --git a/docs/architecture.md b/docs/architecture.md index 648beb4..6e0ef8d 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -62,6 +62,11 @@ Accessibility-oriented helpers are also provided for common attribute patterns: - `AriaInvalid(node, invalid)` - `AriaRequired(node, required)` - `AriaReadOnly(node, readonly)` +- `Disabled(node, disabled)` +- `Checked(node, checked)` +- `Required(node, required)` +- `ReadOnly(node, readonly)` +- `Selected(node, selected)` - `TabIndex(node, index)` - `AutoFocus(node)` - `ID(node, id)` diff --git a/docs/index.md b/docs/index.md index 0e0b216..d43a598 100644 --- a/docs/index.md +++ b/docs/index.md @@ -39,7 +39,7 @@ This builds a Header-Content-Footer layout with semantic HTML elements (`
` (H), `