Sha256: ad7a69544a1696fddb8d4095c2c30c63f497d4f345e8bca10d032c3bdae618b3

Contents?: true

Size: 1.94 KB

Versions: 14

Compression:

Stored size: 1.94 KB

Contents

module Celerity
  
  #
  # Superclass for for Span, Pre, Div, H1, ...
  #
  
  class NonControlElement < Element
    include Exception
    include ClickableElement

    ATTRIBUTES = BASE_ATTRIBUTES
    DEFAULT_HOW = :id
  end

  #
  #--
  #  classes ordered alphabetically
  #++
  #

  class Area < NonControlElement
    ATTRIBUTES = ATTRIBUTES | [:shape, :coords, :href, :nohref, :alt, :tabindex, :accesskey, :onfocus, :onblur]
    TAGS = [ Identifier.new('area') ]
  end

  class Dd < NonControlElement
    TAGS = [ Identifier.new('dd')]
  end

  class Div < NonControlElement
    TAGS = [ Identifier.new('div')]
  end

  class Dl < NonControlElement
    TAGS = [ Identifier.new('dl')]
  end

  class Dt < NonControlElement
    TAGS = [ Identifier.new('dt')]
  end

  class Em < NonControlElement
    TAGS = [ Identifier.new('em')]
  end

  class H1 < NonControlElement
    TAGS = [ Identifier.new('h1') ]
  end

  class H2 < NonControlElement
    TAGS = [ Identifier.new('h2') ]
  end

  class H3 < NonControlElement
    TAGS = [ Identifier.new('h3') ]
  end

  class H4 < NonControlElement
    TAGS = [ Identifier.new('h4') ]
  end

  class H5 < NonControlElement
    TAGS = [ Identifier.new('h5') ]
  end

  class H6 < NonControlElement
    TAGS = [ Identifier.new('h6') ]
  end

  class Li < NonControlElement
    TAGS = [ Identifier.new('li') ]
  end

  class Map < NonControlElement
    TAGS = [ Identifier.new('map') ]
  end

  class Ol < NonControlElement
    TAGS = [ Identifier.new('ol') ]
  end

  class P < NonControlElement
    TAGS = [ Identifier.new('p') ]
  end

  class Pre < NonControlElement
    TAGS = [ Identifier.new('pre')]
  end

  class Span < NonControlElement
    TAGS = [ Identifier.new('span') ]
  end
  
  class Strong < NonControlElement
    TAGS = [ Identifier.new('strong') ]
  end

  # class Title < NonControlElement
  #   TAGS = [ Identifier.new('title') ]
  # end

  class Ul < NonControlElement
    TAGS = [ Identifier.new('ul') ]
  end

end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
jarib-celerity-0.0.5.10 lib/celerity/elements/non_control_elements.rb
jarib-celerity-0.0.5.11 lib/celerity/elements/non_control_elements.rb
jarib-celerity-0.0.5.7 lib/celerity/elements/non_control_elements.rb
jarib-celerity-0.0.5.8 lib/celerity/elements/non_control_elements.rb
jarib-celerity-0.0.5.9 lib/celerity/elements/non_control_elements.rb
jarib-celerity-0.0.6.1 lib/celerity/elements/non_control_elements.rb
jarib-celerity-0.0.6.2 lib/celerity/elements/non_control_elements.rb
jarib-celerity-0.0.6.3 lib/celerity/elements/non_control_elements.rb
jarib-celerity-0.0.6.4 lib/celerity/elements/non_control_elements.rb
jarib-celerity-0.0.6.5 lib/celerity/elements/non_control_elements.rb
jarib-celerity-0.0.6.6 lib/celerity/elements/non_control_elements.rb
jarib-celerity-0.0.6.7 lib/celerity/elements/non_control_elements.rb
jarib-celerity-0.0.6 lib/celerity/elements/non_control_elements.rb
celerity-0.0.6 lib/celerity/elements/non_control_elements.rb