code: def pull_text_until_end
        texts = []
        loop do
          res = pull
          break unless res.text?
          texts << res[0]
        end
        texts.join
      end
docs: Pull all text nodes until the next +end_element+ event.  Return
   the concatenation of text nodes.