I am able to get the contents of a <div> using the ‘.innerHTML’ DOM command.
When I try to split the contents into individual lines using the str.split(“n”) command
I get what I expect with FF (an array of individual lines),
but I get one massive long line in IE (appears to be a one element array?).
Does FF and IE handle the contents of .innerHTML differently?
I suspect that FF uses a “CRLF” while IE only uses “CR”, but I’m not sure.
If I’m right, how do I use the str.split() command to seperate the lines?
Is there a structure similiar to PERL that would look like str.split(/[n|r]/)?
Could I replace the <div> with <pre> and split the lines correctly for both FF and IE?
I’m running out of things to try. Any help is appreciated.