# remove whitespace that would be trimmed
# replace whitespace that would collapse with a single space
# FIXME remove whitespace from after <br> (but not before)
+ # FIXME rewrite to
+ # check computed white-space prop on txt parents
+ # batch replace txt node contents (ie don't loop for each char)
collapse_whitespace: (tree = @tree) ->
prev = cur = next = null
prev_i = cur_i = next_i = 0