I was under the impression that `pre` and `textarea` both retain whitespace on purpose. We don't care about `textarea`, but `pre` does matter. We want folks to be able to do code formatting.

I would say in the big majority of cases, though, we don't care about whitespace when testing. If we get to a case where we do, we can maybe add another option that makes this not strip newlines.