Skip to content

Commit

Permalink
Add some missing HTML5 elements
Browse files Browse the repository at this point in the history
Source: https://developer.mozilla.org/en-US/docs/Web/HTML

New, non experimental, non deprecated elements:
- <bdi>
- <data>
- <dialog>
- <picture>
- <rp>
- <rt>
- <ruby>
- <search>
- <slot>
- <template>
- <u>

Close #654
  • Loading branch information
tagliala committed Jan 31, 2025
1 parent ccb8f74 commit be063a9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## unreleased [](https://github.com/activeadmin/arbre/compare/v2.1.0...master)

* Add some missing HTML5 elements [#655][] by [@tagliala][]

## 2.1.0 [](https://github.com/activeadmin/arbre/compare/v2.0.2...v2.1.0)

* Add support for ViewComponent. [#644][] by [@budu][]
Expand Down Expand Up @@ -154,6 +158,7 @@ Initial release and extraction from Active Admin
[#617]: https://github.com/activeadmin/arbre/pull/617
[#622]: https://github.com/activeadmin/arbre/pull/622
[#644]: https://github.com/activeadmin/arbre/pull/644
[#655]: https://github.com/activeadmin/arbre/pull/655

[@aramvisser]: https://github.com/aramvisser
[@LTe]: https://github.com/LTe
Expand Down
11 changes: 11 additions & 0 deletions lib/arbre/html/html5_elements.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module HTML
:audio,
:b,
:base,
:bdi,
:bdo,
:blockquote,
:body,
Expand All @@ -24,11 +25,13 @@ module HTML
:col,
:colgroup,
:command,
:data,
:datalist,
:dd,
:del,
:details,
:dfn,
:dialog,
:div,
:dl,
:dt,
Expand Down Expand Up @@ -76,14 +79,20 @@ module HTML
:option,
:output,
:param,
:picture,
:pre,
:progress,
:q,
:rp,
:rt,
:ruby,
:s,
:samp,
:script,
:search,
:section,
:select,
:slot,
:small,
:source,
:span,
Expand All @@ -96,6 +105,7 @@ module HTML
:table,
:tbody,
:td,
:template,
:textarea,
:tfoot,
:th,
Expand All @@ -104,6 +114,7 @@ module HTML
:title,
:tr,
:track,
:u,
:ul,
:var,
:video,
Expand Down

0 comments on commit be063a9

Please sign in to comment.