While I was writing a little javascript to enhance my code blocks on my website so it would colour the code to make it more readable I ran into a few odd problems in Internet Explorer.The first was that IE would not return all linebreaks and whitespace when I asked for the content of a PRE element via innerHTML. Some of it got lost.Another problem occured when I tried to use a regular expression to split each line in a string into an array. The method works fine in other browers, even PHP, but IE would cause irregular behaviour.I eventually found a way to get around both problems and wrote a blog post about it on my website. I tried to post the post directly here, but it would mangle HTML. It also seemed that the PRE element where ignored, so in order to read the full article you'll have to visit my original post at http://blog.thomthom...-my-linebreaks/
0 Comments On This Entry
Recent Entries
-
IE ate my linebreaks!on Aug 18 2007 12:37 PM
Help












