Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 2894

Show
Ignore:
Timestamp:
11/06/05 13:59:07 (3 years ago)
Author:
minam
Message:

Add documentation to assert_tag indicating that it only works with well-formed XHTML

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/CHANGELOG

    r2881 r2894  
    11*SVN* 
     2 
     3* Add documentation to assert_tag indicating that it only works with well-formed XHTML #1937, #2570 [Jamis Buck] 
    24 
    35* Added action_pack.rb stub so that ActionPack::Version loads properly [Sam Stephenson] 
  • trunk/actionpack/lib/action_controller/assertions.rb

    r2876 r2894  
    258258      #              :descendant => { :tag => "span", 
    259259      #                               :child => /hello world/ } 
     260      # 
     261      # <strong>Please note</strong: #assert_tag and #assert_no_tag only work 
     262      # with well-formed XHTML. They recognize a few tags as implicitly self-closing 
     263      # (like br and hr and such) but will not work correctly with tags 
     264      # that allow optional closing tags (p, li, td). <em>You must explicitly 
     265      # close all of your tags to use these assertions.</em> 
    260266      def assert_tag(*opts) 
    261267        clean_backtrace do