Sha256: 8daef74e824b939c2c719a0e4d15bedc847c7a45a54e267d2a47f966e2c56312

Contents?: true

Size: 1.86 KB

Versions: 1

Compression:

Stored size: 1.86 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 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

1 entries across 1 versions & 1 rubygems

Version Path
jarib-celerity-0.0.5.6 lib/celerity/elements/non_control_elements.rb