lib/phlex/html/standard_elements.rb in phlex-1.8.3 vs lib/phlex/html/standard_elements.rb in phlex-1.9.0

- old
+ new

@@ -79,10 +79,17 @@ # @return [nil] # @yieldparam component [self] # @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] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/caption @@ -94,11 +101,11 @@ # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/cite register_element :cite, tag: "cite" # @!method code(**attributes, &content) - # Outputs a ``` tag. + # Outputs a `<code>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/code register_element :code, tag: "code" @@ -276,18 +283,18 @@ # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/header register_element :header, tag: "header" # @!method hgroup(**attributes, &content) - # Outputs a `<hgroup>` tag. + # Outputs an `<hgroup>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/hgroup register_element :hgroup, tag: "hgroup" # @!method html(**attributes, &content) - # Outputs a `<html>` tag. + # Outputs an `<html>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/html register_element :html, tag: "html" @@ -451,18 +458,18 @@ # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/q register_element :q, tag: "q" # @!method rp(**attributes, &content) - # Outputs a `<rp>` tag. + # Outputs an `<rp>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/rp register_element :rp, tag: "rp" # @!method rt(**attributes, &content) - # Outputs a `<rt>` tag. + # Outputs an `<rt>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/rt register_element :rt, tag: "rt" @@ -472,10 +479,10 @@ # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/ruby register_element :ruby, tag: "ruby" # @!method s(**attributes, &content) - # Outputs a `<s>` tag. + # Outputs an `<s>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/s register_element :s, tag: "s"