class Loofah::Scrubber

def traverse_conditionally_top_down(node)

def traverse_conditionally_top_down(node)
  if block
    return if block.call(node) == STOP
  elsif scrub(node) == STOP
    return
  end
  node.children.each { |j| traverse_conditionally_top_down(j) }
end