diff --git a/lib/phlex/elements.rb b/lib/phlex/elements.rb index 3fbec2e3..0ac6953e 100644 --- a/lib/phlex/elements.rb +++ b/lib/phlex/elements.rb @@ -32,7 +32,7 @@ def registered_elements # @note The methods defined by this macro depend on other methods from {SGML} so they should always be mixed into an {HTML} or {SVG} component. # @example Register the custom element `` # register_element :trix_editor - def register_element(method_name, tag: nil) + def register_element(method_name, tag: nil, deprecated: false) tag ||= method_name.name.tr("_", "-") class_eval(<<-RUBY, __FILE__, __LINE__ + 1) @@ -73,7 +73,7 @@ def #{method_name}(**attributes, &block) end # @api private - def register_void_element(method_name, tag: method_name.name.tr("_", "-")) + def register_void_element(method_name, tag: method_name.name.tr("_", "-"), deprecated: false) class_eval(<<-RUBY, __FILE__, __LINE__ + 1) # frozen_string_literal: true diff --git a/lib/phlex/html/standard_elements.rb b/lib/phlex/html/standard_elements.rb index e925ec46..9a0cfe9a 100644 --- a/lib/phlex/html/standard_elements.rb +++ b/lib/phlex/html/standard_elements.rb @@ -39,6 +39,13 @@ module Phlex::HTML::StandardElements # @see https://developer.mozilla.org/docs/Web/HTML/Element/aside register_element :aside, tag: "aside" + # @!method audio(**attributes, &content) + # Outputs an `