Ticket #9037: doc_assert_tag_cosmetics.diff
| File doc_assert_tag_cosmetics.diff, 1.3 kB (added by mfazekas, 1 year ago) |
|---|
-
actionpack/lib/action_controller/assertions/tag_assertions.rb
old new 37 37 # to match on the children, and only matching children will be 38 38 # counted. 39 39 # * <tt>:content</tt>: the textual content of the node must match the 40 # given value. This will not match HTML tags in the body of a41 # tag--only text.40 # given value. This will not match HTML tags in the body of a 41 # tag--only text. 42 42 # 43 43 # Conditions are matched using the following algorithm: 44 44 # … … 90 90 # :descendant => { :tag => "span", 91 91 # :child => /hello world/ } 92 92 # 93 # < strong>Please note</strong: #assert_tag and #assert_no_tag only work93 # <b>Please note</b>: #assert_tag and #assert_no_tag only work 94 94 # with well-formed XHTML. They recognize a few tags as implicitly self-closing 95 95 # (like br and hr and such) but will not work correctly with tags 96 96 # that allow optional closing tags (p, li, td). <em>You must explicitly