Input:

A
B
C
D

E
[LF]
F
[LF]
G
[CR]
H
[CR]
I[LF]

J[LF]

K[CR]

L[CR]

M[LF]
N[CR]
O[CR][LF]
P[LF]
[CR]
Q

Rendered view:

(script didn't run)

Characters in the DOM (according to .value):

(script didn't run)