Class: TextElements::Span
- Inherits:
-
ContainerElement
- Object
- ContainerElement
- TextElements::Span
- Defined in:
- lib/reparcs/elements/text_elements.rb
Overview
A span element Use: define a inline grouping of elements.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Span
constructor
Create a new Span element, takes a optional hash of attributes as parameter.
Constructor Details
#initialize(attrs = {}) ⇒ Span
Create a new Span element, takes a optional hash of attributes as parameter.
370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 |
# File 'lib/reparcs/elements/text_elements.rb', line 370 def initialize(attrs={}) aattrs = [ "class", "id" ,"title", "dir", "xml:lang", "onclick", "ondblclick", "onkeydown", "onkeypress", "onkeyup", "onmousedown", "onmousemove", "onmouseout", "onmouseover", "onmouseup" ] childs = [ "a", "abbr", "acronym", "b", "bdo", "big", "br", "button", "cite", "code", "del", "dfn", "em" ,"i", "img", "input", "ins", "kbd", "label", "map", "object", "q", "samp", "script", "select", "small", "span", "strong", "sub", "sup", "textarea", "tt", "var" ] super("span", aattrs, childs, attrs) @start_element = "<span" @end_element = "</span>" end |