Class: TableElements::TableFooter

Inherits:
ContainerElement
  • Object
show all
Defined in:
lib/reparcs/elements/table_elements.rb

Overview

A table footer element.

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ TableFooter

Creates a new table footer element, takesan optional hash of attributes as parameter.



139
140
141
142
143
144
145
146
147
148
149
150
# File 'lib/reparcs/elements/table_elements.rb', line 139

def initialize(attrs={})
  aattrs = [
    "class", "id", "title", "dir", "xml:lang",
    "onclick", "ondblclick", "onkeydown", "onkeypress",
    "onkeyup", "onmousedown", "onmousemove", "onmouseout",
    "onmouseover", "onmouseup", "style", "charset",
    "hreflang", "align", "char", "charoff", "valign"
  ]
  super("tfoot", aattrs, ["tr"], attrs)
  @start_element = "<tfoot"
  @end_element = "</tfoot>"
end