lib/celerity/elements/form.rb in celerity-0.0.6 vs lib/celerity/elements/form.rb in celerity-0.0.7

- old
+ new

@@ -1,21 +1,23 @@ module Celerity class Form < Element include Container - + TAGS = [Identifier.new('form')] - + # HTML 4.01 Transitional DTD ATTRIBUTES = BASE_ATTRIBUTES | [:action, :method, :enctype, :accept, :name, :onsubmit, :onreset, :target, :'accept-charset'] DEFAULT_HOW = :name # # Submits the form. - # - + # + # This method should be avoided - invoke the user interface element that triggers the submit instead. + # + def submit assert_exists - @container.update_page @object.submit(nil) + @object.submit(nil) end end # Form end # Celerity \ No newline at end of file