Class: ImageElements::ImageMapRegion

Inherits:
Element
  • Object
show all
Defined in:
lib/reparcs/elements/image_elements.rb

Overview

A image map region element ‘<area />’

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ ImageMapRegion

Creates a new ImageMapRegion element, takes an optional hash of attributes as parameter.



50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/reparcs/elements/image_elements.rb', line 50

def initialize(attrs={})
  aattrs = [
     "class", "id", "title", "dir", "xml:lang",
     "onclick", "ondblclick", "onkeydown", "onkeypress",
     "onkeyup", "onmousedown", "onmousemove", "onmouseout",
     "onmouseover", "onmouseover", "onmouseup", "style",
     "accesskey", "alt", "coords", "href", "shape", "tabindex"
   ]
  super("area", aattrs, attrs)
  @start_element = "<area"
  @end_element = " />"
end