lib/phlex/html/standard_elements.rb in phlex-1.3.3 vs lib/phlex/html/standard_elements.rb in phlex-1.4.0

- old
+ new

@@ -1,10 +1,12 @@ # frozen_string_literal: true module Phlex::HTML::StandardElements extend Phlex::Elements + REGISTERED_ELEMENTS = Concurrent::Map.new + # @!method a(**attributes, &content) # Outputs an <code>a</code> tag # @return [nil] # @see https://developer.mozilla.org/docs/Web/HTML/Element/a register_element :a, tag: "a" @@ -187,17 +189,10 @@ # Outputs a <code>form</code> tag # @return [nil] # @see https://developer.mozilla.org/docs/Web/HTML/Element/form register_element :form, tag: "form" - # @!method g(**attributes, &content) - # Outputs a <code>g</code> tag - # @return [nil] - # @see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/g - # @todo move this to SVG - register_element :g, tag: "g" - # @!method h1(**attributes, &content) # Outputs an <code>h1</code> tag # @return [nil] # @see https://developer.mozilla.org/docs/Web/HTML/Element/h1 register_element :h1, tag: "h1" @@ -374,16 +369,9 @@ # @!method p(**attributes, &content) # Outputs a <code>p</code> tag # @return [nil] # @see https://developer.mozilla.org/docs/Web/HTML/Element/p register_element :p, tag: "p" - - # @!method path(**attributes, &content) - # Outputs a <code>path</code> tag - # @return [nil] - # @see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/path - # @todo move this to SVG - register_element :path, tag: "path" # @!method picture(**attributes, &content) # Outputs a <code>picture</code> tag # @return [nil] # @see https://developer.mozilla.org/docs/Web/HTML/Element/picture