Class: TableElements::TableCell
- Inherits:
-
ContainerElement
- Object
- ContainerElement
- TableElements::TableCell
- Defined in:
- lib/reparcs/elements/table_elements.rb
Overview
A table cell element.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ TableCell
constructor
Creates a new TableCell element, takesan optional hash of attributes as parameter.
Constructor Details
#initialize(attrs = {}) ⇒ TableCell
Creates a new TableCell element, takesan optional hash of attributes as parameter.
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
# File 'lib/reparcs/elements/table_elements.rb', line 111 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("td", aattrs, childs, attrs) @start_element = "<td" @end_element = "</td>" end |