Module: FunHtml::SpecElements::HTMLTableColElement

Included in:
HTMLAllElements
Defined in:
lib/fun_html/spec_elements.rb

Instance Method Summary collapse

Instance Method Details

#col(attributes = nil) ⇒ Object



496
497
498
499
# File 'lib/fun_html/spec_elements.rb', line 496

def col(attributes = nil)
  # no child elements allowed and no closing tag
  write_void('<col', attributes)
end

#colgroup(attributes = nil, &elements) ⇒ Object



492
493
494
# File 'lib/fun_html/spec_elements.rb', line 492

def colgroup(attributes = nil, &elements)
  write('<colgroup', '</colgroup>', attributes, &elements)
end