Skip to content

Commit

Permalink
Add canvas tag to the list of standard HTML elements
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattia Roccoberton committed Apr 27, 2023
1 parent ab07eff commit a968555
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 a968555

Please sign in to comment.