Skip to content

Commit

Permalink
Add canvas tag to the list of standard HTML elements (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldrapper authored Apr 27, 2023
2 parents ab07eff + a968555 commit b506aeb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/phlex/html/standard_elements.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ module Phlex::HTML::StandardElements
# @see https://developer.mozilla.org/docs/Web/HTML/Element/button
register_element :button, tag: "button"

# @!method canvas(**attributes, &content)
# Outputs a `<canvas>` tag.
# @return [nil]
# @yieldparam component [self]
# @see https://developer.mozilla.org/docs/Web/HTML/Element/canvas
register_element :canvas, tag: "canvas"

# @!method caption(**attributes, &content)
# Outputs a `<caption>` tag.
# @return [nil]
Expand Down

0 comments on commit b506aeb

Please sign in to comment.