Changeset 131

Show
Ignore:
Timestamp:
04/04/2007 00:00:28 (20 months ago)
Author:
why
Message:
  • lib/hpricot/traverse.rb: spaces in the expression "html > body > p" were causing a choke, but a heimlich was found. (see #50)
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/hpricot/traverse.rb

    r127 r131  
    230230              last = expr = $' 
    231231              nodes.map! { |node| node.parent } 
    232           when %r!^[>/]! 
     232          when %r!^[>/]\s*! 
    233233              last = expr = $' 
    234234              nodes = Elements[*nodes.map { |node| node.children if node.respond_to? :children }.flatten.compact]