Class: ScriptingElements::NoScript

Inherits:
ContainerElement
  • Object
show all
Defined in:
lib/reparcs/elements/scripting_elements.rb

Overview

A no script element ‘<noscript></noscript>’

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ NoScript

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



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/reparcs/elements/scripting_elements.rb', line 10

def initialize(attrs={})
  aattrs = [
    "class", "id", "title", "dir", "xml:lang",
    "onclick", "ondblclick", "onkeydown", "onkeypress",
    "onkeyup", "onmousedown", "onmousemove", "onmouseout",
    "onmouseover", "onmouseup", "style"
  ]
  childs = [
    "address", "blockquote", "del", "dfn", "div", "dl",
    "fieldset", "form", "h1", "h2", "h3", "h4", "h5", "h6",
    "hr", "ins", "noscript", "ol", "p", "pre", "script",
    "table", "ul"
  ]
  super("noscript", aattrs, childs, attrs)
  @start_element = "<noscript"
  @end_element = "</noscript>"
end