List up all boolean attributes

This commit is contained in:
Takashi Kokubun 2022-10-28 21:59:15 -07:00
parent f05532bb2a
commit 8610dc1824
No known key found for this signature in database
GPG Key ID: 6FFC433B12EE23DD
1 changed files with 5 additions and 2 deletions

View File

@ -68,8 +68,11 @@ Released on September 21, 2022
* Removed: `block_is_haml?`, `capture_haml`, `escape_once`, `find_and_preserve`, `flatten`, `haml_concat`,
`haml_indent`, `haml_tag`, `haml_tag_if`, `html_attrs`, `html_escape`, `init_haml_helpers`, `is_haml?`,
`list_of`, `non_haml`, `precede`, `succeed`, `surround`, `tab_down`, `tab_up`, `with_tabs`
* Only the attributes in [`Haml::AttributeBuilder::BOOLEAN_ATTRIBUTES`](lib/haml/attribute_builder.rb)
are handled as boolean attributes.
* Only the following attributes and `aria`/`data` attributes are considered boolean attributes:
* `allowfullscreen`, `async`, `autobuffer`, `autofocus`, `autoplay`, `checked`, `controls`, `default`,
`defer`, `disabled`, `download`, `formnovalidate`, `hidden`, `inert`, `ismap`, `itemscope`, `loop`,
`multiple`, `muted`, `novalidate`, `open`, `pubdate`, `readonly`, `required`, `reversed`, `scoped`,
`seamless`, `selected`, `sortable`, `truespeed`, `typemustmatch`
* Some legacy Rails integration is removed.
* The default value of `escape_html` option became true.
* `-` script lines no longer support capturing. Only `=` lines are supported to yield a nested block.