From 0eb3cf6978571e448d74004b5402b335e1b503ae Mon Sep 17 00:00:00 2001 From: Daniel Diekmeier Date: Mon, 3 Oct 2022 06:58:22 +0200 Subject: [PATCH] Explain special case of `data-` and `aria-` attributes (#1095) --- REFERENCE.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/REFERENCE.md b/REFERENCE.md index c3ba593e..71cc8509 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -294,7 +294,19 @@ or using `true` and `false`: %input(selected=true) This feature works only for attributes that are included in -[`Haml::AttributeBuilder::BOOLEAN_ATTRIBUTES`](lib/haml/attribute_builder.rb). +[`Haml::AttributeBuilder::BOOLEAN_ATTRIBUTES`](lib/haml/attribute_builder.rb), +as well as `data-` and `aria-` attributes. + + %input{'data-hidden' => false} + %input{'aria-hidden' => false} + %input{'xyz-hidden' => false} + +will render as: + + + + +