Class: TableElements::TableHeaderCell
- Inherits:
-
ContainerElement
- Object
- ContainerElement
- TableElements::TableHeaderCell
- Defined in:
- lib/reparcs/elements/table_elements.rb
Overview
A table header cell element.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ TableHeaderCell
constructor
Creates a new TableHeaderCell element, takesan optional hash of attributes as parameter.
Constructor Details
#initialize(attrs = {}) ⇒ TableHeaderCell
Creates a new TableHeaderCell element, takesan optional hash of attributes as parameter.
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 |
# File 'lib/reparcs/elements/table_elements.rb', line 157 def initialize(attrs={}) aattrs = [ "class", "id", "title", "dir", "xml:lang", "onclick", "ondblclick", "onkeydown", "onkeypress", "onkeyup", "onmousedown", "onmousemove", "onmouseout", "onmouseover", "onmouseup", "style", "charset", "hreflang", "abbr", "align", "axis", "char", "charoff", "colspan", "headers", "rowspan", "valign" ] childs = [ "abbr", "acronym", "address", "b", "bdo", "big", "blockquote", "br" ,"button", "cite", "code", "del", "dfn", "div", "dl", "em", "fieldset", "form", "h1" ,"h2", "h3", "h4", "h5", "h6", "hr", "i", "img", "input", "ins", "kbd", "label", "map", "object", "ol", "p", "pre", "q", "samp", "script", "select", "small", "span", "strong", "sub", "sup", "table", "textarea", "tt", "ul", "var" ] super("th", aattrs, childs, attrs) @start_element = "<th" @end_element = "</th>" end |