Module: Eskimo::HTML

Defined in:
lib/eskimo/html.rb,
lib/eskimo/html/util.rb,
lib/eskimo/html/builder.rb,
lib/eskimo/html/version.rb,
lib/eskimo/html/component.rb

Defined Under Namespace

Modules: Util Classes: Builder, Component, Html

Constant Summary collapse

TAGS =
%w[
  a abbr address area article aside audio b base bdi bdo blockquote body
  br button canvas caption cite code col colgroup 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 math menu menuitem meta
  meter nav noscript object ol optgroup option output p param picture pre
  progress q rb rp rt rtc ruby s samp script 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
]
VOID_TAGS =
%w[
  area base br col embed hr img input link meta param source track wbr
]
VERSION =
'4.0.0'

Class Method Summary collapse

Class Method Details

.valid_tagname?(tagname) ⇒ Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/eskimo/html.rb', line 25

def self.valid_tagname?(tagname)
  TAGS.include?(tagname) || tagname == 'html'
end