lib/phlex/html/standard_elements.rb in phlex-1.9.3 vs lib/phlex/html/standard_elements.rb in phlex-1.10.0

- old
+ new

@@ -14,592 +14,627 @@ # @!method abbr(**attributes, &content) # Outputs an `<abbr>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/abbr - register_element :abbr, tag: "abbr" + register_element :abbr # @!method address(**attributes, &content) # Outputs an `<address>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/address - register_element :address, tag: "address" + register_element :address # @!method article(**attributes, &content) # Outputs an `<article>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/article - register_element :article, tag: "article" + register_element :article # @!method aside(**attributes, &content) # Outputs an `<aside>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/aside - register_element :aside, tag: "aside" + register_element :aside + # @!method audio(**attributes, &content) + # Outputs an `<audio>` tag. + # @return [nil] + # @yieldparam component [self] + # @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio + register_element :audio + # @!method b(**attributes, &content) # Outputs a `<b>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/b - register_element :b, tag: "b" + register_element :b + # @!method base(**attributes, &content) + # Outputs a `<base>` tag. + # @return [nil] + # @yieldparam component [self] + # @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base + register_element :base + # @!method bdi(**attributes, &content) # Outputs a `<bdi>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/bdi - register_element :bdi, tag: "bdi" + register_element :bdi # @!method bdo(**attributes, &content) # Outputs a `<bdo>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/bdo - register_element :bdo, tag: "bdo" + register_element :bdo # @!method blockquote(**attributes, &content) # Outputs a `<blockquote>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/blockquote - register_element :blockquote, tag: "blockquote" + register_element :blockquote # @!method body(**attributes, &content) # Outputs a `<body>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/body - register_element :body, tag: "body" + register_element :body # @!method button(**attributes, &content) # Outputs a `<button>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/button - register_element :button, tag: "button" + register_element :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" + register_element :canvas # @!method caption(**attributes, &content) # Outputs a `<caption>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/caption - register_element :caption, tag: "caption" + register_element :caption # @!method cite(**attributes, &content) # Outputs a `<cite>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/cite - register_element :cite, tag: "cite" + register_element :cite # @!method code(**attributes, &content) # Outputs a `<code>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/code - register_element :code, tag: "code" + register_element :code # @!method colgroup(**attributes, &content) # Outputs a `<colgroup>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/colgroup - register_element :colgroup, tag: "colgroup" + register_element :colgroup # @!method data(**attributes, &content) # Outputs a `<data>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/data - register_element :data, tag: "data" + register_element :data # @!method datalist(**attributes, &content) # Outputs a `<datalist>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/datalist - register_element :datalist, tag: "datalist" + register_element :datalist # @!method dd(**attributes, &content) # Outputs a `<dd>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/dd - register_element :dd, tag: "dd" + register_element :dd # @!method del(**attributes, &content) # Outputs a `<del>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/del - register_element :del, tag: "del" + register_element :del # @!method details(**attributes, &content) # Outputs a `<details>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/details - register_element :details, tag: "details" + register_element :details # @!method dfn(**attributes, &content) # Outputs a `<dfn>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/dfn - register_element :dfn, tag: "dfn" + register_element :dfn # @!method dialog(**attributes, &content) # Outputs a `<dialog>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/dialog - register_element :dialog, tag: "dialog" + register_element :dialog # @!method div(**attributes, &content) # Outputs a `<div>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/div - register_element :div, tag: "div" + register_element :div # @!method dl(**attributes, &content) # Outputs a `<dl>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/dl - register_element :dl, tag: "dl" + register_element :dl # @!method dt(**attributes, &content) # Outputs a `<dt>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/dt - register_element :dt, tag: "dt" + register_element :dt # @!method em(**attributes, &content) # Outputs an `<em>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/em - register_element :em, tag: "em" + register_element :em # @!method fieldset(**attributes, &content) # Outputs a `<fieldset>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/fieldset - register_element :fieldset, tag: "fieldset" + register_element :fieldset # @!method figcaption(**attributes, &content) # Outputs a `<figcaption>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/figcaption - register_element :figcaption, tag: "figcaption" + register_element :figcaption # @!method figure(**attributes, &content) # Outputs a `<figure>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/figure - register_element :figure, tag: "figure" + register_element :figure # @!method footer(**attributes, &content) # Outputs a `<footer>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/footer - register_element :footer, tag: "footer" + register_element :footer # @!method form(**attributes, &content) # Outputs a `<form>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/form - register_element :form, tag: "form" + register_element :form # @!method h1(**attributes, &content) # Outputs an `<h1>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/h1 - register_element :h1, tag: "h1" + register_element :h1 # @!method h2(**attributes, &content) # Outputs an `<h2>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/h2 - register_element :h2, tag: "h2" + register_element :h2 # @!method h3(**attributes, &content) # Outputs an `<h3>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/h3 - register_element :h3, tag: "h3" + register_element :h3 # @!method h4(**attributes, &content) # Outputs an `<h4>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/h4 - register_element :h4, tag: "h4" + register_element :h4 # @!method h5(**attributes, &content) # Outputs an `<h5>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/h5 - register_element :h5, tag: "h5" + register_element :h5 # @!method h6(**attributes, &content) # Outputs an `<h6>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/h6 - register_element :h6, tag: "h6" + register_element :h6 # @!method head(**attributes, &content) # Outputs a `<head>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/head - register_element :head, tag: "head" + register_element :head # @!method header(**attributes, &content) # Outputs a `<header>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/header - register_element :header, tag: "header" + register_element :header # @!method hgroup(**attributes, &content) # Outputs an `<hgroup>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/hgroup - register_element :hgroup, tag: "hgroup" + register_element :hgroup # @!method html(**attributes, &content) # Outputs an `<html>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/html - register_element :html, tag: "html" + register_element :html # @!method i(**attributes, &content) # Outputs an `<i>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/i - register_element :i, tag: "i" + register_element :i # @!method iframe(**attributes, &content) # Outputs an `<iframe>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/iframe - register_element :iframe, tag: "iframe" + register_element :iframe # @!method ins(**attributes, &content) # Outputs an `<ins>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/ins - register_element :ins, tag: "ins" + register_element :ins # @!method kbd(**attributes, &content) # Outputs a `<kbd>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/kbd - register_element :kbd, tag: "kbd" + register_element :kbd # @!method label(**attributes, &content) # Outputs a `<label>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/label - register_element :label, tag: "label" + register_element :label # @!method legend(**attributes, &content) # Outputs a `<legend>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/legend - register_element :legend, tag: "legend" + register_element :legend # @!method li(**attributes, &content) # Outputs a `<li>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/li - register_element :li, tag: "li" + register_element :li # @!method main(**attributes, &content) # Outputs a `<main>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/main - register_element :main, tag: "main" + register_element :main # @!method map(**attributes, &content) # Outputs a `<map>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/map - register_element :map, tag: "map" + register_element :map # @!method mark(**attributes, &content) # Outputs a `<mark>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/mark - register_element :mark, tag: "mark" + register_element :mark + # @!method menu(**attributes, &content) + # Outputs a `<menu>` tag. + # @return [nil] + # @yieldparam component [self] + # @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/menu + register_element :menu + # @!method meter(**attributes, &content) # Outputs a `<meter>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/meter - register_element :meter, tag: "meter" + register_element :meter # @!method nav(**attributes, &content) # Outputs a `<nav>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/nav - register_element :nav, tag: "nav" + register_element :nav # @!method noscript(**attributes, &content) # Outputs a `<noscript>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/noscript - register_element :noscript, tag: "noscript" + register_element :noscript # @!method object(**attributes, &content) # Outputs an `<object>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/object - register_element :object, tag: "object" + register_element :object # @!method ol(**attributes, &content) # Outputs an `<ol>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/ol - register_element :ol, tag: "ol" + register_element :ol # @!method optgroup(**attributes, &content) # Outputs an `<optgroup>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/optgroup - register_element :optgroup, tag: "optgroup" + register_element :optgroup # @!method option(**attributes, &content) # Outputs an `<option>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/option - register_element :option, tag: "option" + register_element :option # @!method output(**attributes, &content) # Outputs an `<output>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/output - register_element :output, tag: "output" + register_element :output # @!method p(**attributes, &content) # Outputs a `<p>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/p - register_element :p, tag: "p" + register_element :p # @!method picture(**attributes, &content) # Outputs a `<picture>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/picture - register_element :picture, tag: "picture" + register_element :picture + # @!method portal(**attributes, &content) + # Outputs a `<portal>` tag. (Experimental) + # @return [nil] + # @yieldparam component [self] + # @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/portal + register_element :portal + # @!method pre(**attributes, &content) # Outputs a `<pre>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/pre - register_element :pre, tag: "pre" + register_element :pre # @!method progress(**attributes, &content) # Outputs a `<progress>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/progress - register_element :progress, tag: "progress" + register_element :progress # @!method q(**attributes, &content) # Outputs a `<q>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/q - register_element :q, tag: "q" + register_element :q # @!method rp(**attributes, &content) # Outputs an `<rp>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/rp - register_element :rp, tag: "rp" + register_element :rp # @!method rt(**attributes, &content) # Outputs an `<rt>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/rt - register_element :rt, tag: "rt" + register_element :rt # @!method ruby(**attributes, &content) - # Outputs a `<ruby>` tag. + # Outputs a `<ruby>` tag. (The best tag ever!) # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/ruby - register_element :ruby, tag: "ruby" + register_element :ruby # @!method s(**attributes, &content) # Outputs an `<s>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/s - register_element :s, tag: "s" + register_element :s # @!method samp(**attributes, &content) # Outputs a `<samp>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/samp - register_element :samp, tag: "samp" + register_element :samp # @!method script(**attributes, &content) # Outputs a `<script>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/script - register_element :script, tag: "script" + register_element :script + # @!method search(**attributes, &content) + # Outputs a `<search>` tag. + # @return [nil] + # @yieldparam component [self] + # @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/search + register_element :search + # @!method section(**attributes, &content) # Outputs a `<section>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/section - register_element :section, tag: "section" + register_element :section # @!method select(**attributes, &content) # Outputs a `<select>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/select - register_element :select, tag: "select" + register_element :select # @!method slot(**attributes, &content) # Outputs a `<slot>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/slot - register_element :slot, tag: "slot" + register_element :slot # @!method small(**attributes, &content) # Outputs a `<small>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/small - register_element :small, tag: "small" + register_element :small # @!method span(**attributes, &content) # Outputs a `<span>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/span - register_element :span, tag: "span" + register_element :span # @!method strong(**attributes, &content) # Outputs a `<strong>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/strong - register_element :strong, tag: "strong" + register_element :strong # @!method style(**attributes, &content) # Outputs a `<style>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/style - register_element :style, tag: "style" + register_element :style # @!method sub(**attributes, &content) # Outputs a `<sub>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/sub - register_element :sub, tag: "sub" + register_element :sub # @!method summary(**attributes, &content) # Outputs a `<summary>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/summary - register_element :summary, tag: "summary" + register_element :summary # @!method sup(**attributes, &content) # Outputs a `<sup>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/sup - register_element :sup, tag: "sup" + register_element :sup # @!method svg(**attributes, &content) # Outputs an `<svg>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/svg - register_element :svg, tag: "svg" + register_element :svg # @!method table(**attributes, &content) # Outputs a `<table>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/table - register_element :table, tag: "table" + register_element :table # @!method tbody(**attributes, &content) # Outputs a `<tbody>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/tbody - register_element :tbody, tag: "tbody" + register_element :tbody # @!method td(**attributes, &content) # Outputs a `<td>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/td - register_element :td, tag: "td" + register_element :td # @!method template_tag(**attributes, &content) # Outputs a `<template>` tag. # @return [nil] # @yieldparam component [self] @@ -609,77 +644,84 @@ # @!method textarea(**attributes, &content) # Outputs a `<textarea>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/textarea - register_element :textarea, tag: "textarea" + register_element :textarea # @!method tfoot(**attributes, &content) # Outputs a `<tfoot>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/tfoot - register_element :tfoot, tag: "tfoot" + register_element :tfoot # @!method th(**attributes, &content) # Outputs a `<th>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/th - register_element :th, tag: "th" + register_element :th # @!method thead(**attributes, &content) # Outputs a `<thead>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/thead - register_element :thead, tag: "thead" + register_element :thead # @!method time(**attributes, &content) # Outputs a `<time>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/time - register_element :time, tag: "time" + register_element :time # @!method title(**attributes, &content) # Outputs a `<title>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/title - register_element :title, tag: "title" + register_element :title # @!method tr(**attributes, &content) # Outputs a `<tr>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/tr - register_element :tr, tag: "tr" + register_element :tr # @!method u(**attributes, &content) # Outputs a `<u>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/u - register_element :u, tag: "u" + register_element :u # @!method ul(**attributes, &content) # Outputs a `<ul>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/ul - register_element :ul, tag: "ul" + register_element :ul + # @!method var(**attributes, &content) + # Outputs a `<var>` tag. + # @return [nil] + # @yieldparam component [self] + # @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/var + register_element :var + # @!method video(**attributes, &content) # Outputs a `<video>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/video - register_element :video, tag: "video" + register_element :video # @!method wbr(**attributes, &content) # Outputs a `<wbr>` tag. # @return [nil] # @yieldparam component [self] # @see https://developer.mozilla.org/docs/Web/HTML/Element/wbr - register_element :wbr, tag: "wbr" + register_element :wbr end