Class: FormElements::FieldSet
- Inherits:
-
ContainerElement
- Object
- ContainerElement
- FormElements::FieldSet
- Defined in:
- lib/reparcs/elements/form_elements.rb
Overview
A Fieldset element
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ FieldSet
constructor
Creates a new fieldset element, takes an optional hash of attributes as parameter.
Constructor Details
#initialize(attrs = {}) ⇒ FieldSet
Creates a new fieldset element, takes an optional hash of attributes as parameter.
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/reparcs/elements/form_elements.rb', line 36 def initialize(attrs={}) aattrs = [ "class", "id", "title", "xml:lang", "onclick", "ondblclick", "onkeydown", "onkeypress", "onkeyup", "onmousedown", "onmousemove", "onmouseout", "onmouseover", "onmouseup" ] childs = [ "a", "abbr", "acronym", "address", "b", "bdo", "big", "button", "caption", "cite", "code", "dd", "del", "dfn", "div", "dt", "em", "fieldset", "form", "h1", "h2", "h3", "h4", "h5", "h6", "i", "ins", "kbd", "label", "legend", "li", "object", "p", "pre", "q", "samp", "small" ,"span", "strong", "sub", "sup", "td", "th", "tt", "var" ] super("fieldset", aattrs, childs, attrs) @start_element = "<fieldset" @end_element = "</fieldset>" end |