Module: Arbre::HTML

Defined in:
lib/arbre/html/tag.rb,
lib/arbre/html/document.rb,
lib/arbre/html/text_node.rb,
lib/arbre/html/attributes.rb,
lib/arbre/html/class_list.rb,
lib/arbre/html/html5_elements.rb

Defined Under Namespace

Classes: Attributes, ClassList, Document, P, Tag, TextNode

Constant Summary collapse

AUTO_BUILD_ELEMENTS =
[
  :a,
  :abbr,
  :address,
  :area,
  :article,
  :aside,
  :audio,
  :b,
  :base,
  :bdi,
  :bdo,
  :blockquote,
  :body,
  :br,
  :button,
  :canvas,
  :caption,
  :cite,
  :code,
  :col,
  :colgroup,
  :command,
  :data,
  :datalist,
  :dd,
  :del,
  :details,
  :dfn,
  :dialog,
  :div,
  :dl,
  :dt,
  :em,
  :embed,
  :fieldset,
  :figcaption,
  :figure,
  :footer,
  :form,
  :h1,
  :h2,
  :h3,
  :h4,
  :h5,
  :h6,
  :head,
  :header,
  :hgroup,
  :hr,
  :html,
  :i,
  :iframe,
  :img,
  :input,
  :ins,
  :kbd,
  :keygen,
  :label,
  :legend,
  :li,
  :link,
  :main,
  :map,
  :mark,
  :menu,
  :menuitem,
  :meta,
  :meter,
  :nav,
  :noscript,
  :object,
  :ol,
  :optgroup,
  :option,
  :output,
  :param,
  :picture,
  :pre,
  :progress,
  :q,
  :rp,
  :rt,
  :ruby,
  :s,
  :samp,
  :script,
  :search,
  :section,
  :select,
  :slot,
  :small,
  :source,
  :span,
  :strong,
  :style,
  :sub,
  :summary,
  :sup,
  :svg,
  :table,
  :tbody,
  :td,
  :template,
  :textarea,
  :tfoot,
  :th,
  :thead,
  :time,
  :title,
  :tr,
  :track,
  :u,
  :ul,
  :var,
  :video,
  :wbr
]
HTML5_ELEMENTS =
[ :p ] + AUTO_BUILD_ELEMENTS