A single line of text

A div containing

More than one line of text
and block level elements
An inline element

This line has lots of spaces.

This line has a non-breaking space

Some text that contains script tags

This line has a   non-breaking space and spaces

This line has trailing non-breaking spaces   

These lines  
  have leading and trailing NBSPs  

FAIL

This line has text within elements that are meant to be displayed inline

before pre

   This section has a preformatted
    text block    
  split in four lines
         

after pre

Some text

Some more text

Cheese

Some text

Some more text

and also

Brie
Hello, world
oooOooo
A B

1 2 3 4
a
b
beforeSpace afterSpace
Dubito, ergo cogito, ergo sum. a bc this is the second element
Some transparent text
This line has a bunch of ze​ro-width‎ characters‏ in it.