lib/celerity/elements/link.rb in celerity-0.0.3 vs lib/celerity/elements/link.rb in celerity-0.0.4

- old
+ new

@@ -1,11 +1,14 @@ module Celerity class Link < Element TAGS = [ Identifier.new('a') ] - ATTRIBUTES = BASE_ATTRIBUTES | [:charset, :type, :name, :href, :hreflang, :target, :rel, :rev, :accesskey, :shape, :coords, :tabindex, :onfocus, :onblur] + ATTRIBUTES = BASE_ATTRIBUTES | [:charset, :type, :name, :href, :hreflang, + :target, :rel, :rev, :accesskey, :shape, + :coords, :tabindex, :onfocus, :onblur] DEFAULT_HOW = :href + # clicks the link def click assert_exists @container.update_page @object.click end \ No newline at end of file