From 5fc370b69118b20a4ec98c2264b262a22cdc8e85 Mon Sep 17 00:00:00 2001 From: Virgil Date: Sat, 4 Apr 2026 01:26:50 +0000 Subject: [PATCH] feat(html): add placeholder helper Co-Authored-By: Virgil --- docs/architecture.md | 1 + docs/index.md | 4 ++-- node.go | 10 ++++++++++ node_test.go | 20 ++++++++++++++++++++ 4 files changed, 33 insertions(+), 2 deletions(-) diff --git a/docs/architecture.md b/docs/architecture.md index a1d5b1f..fef04a9 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -54,6 +54,7 @@ Accessibility-oriented helpers are also provided for common attribute patterns: - `Dir(node, direction)` - `Alt(node, text)` - `Title(node, text)` +- `Placeholder(node, text)` - `Class(node, classes...)` - `AriaHidden(node, hidden)` - `AriaExpanded(node, expanded)` diff --git a/docs/index.md b/docs/index.md index 9bb7d9c..ff1bf7c 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), `