You're making an assumption that in IE there are newline characters in
the retrieved html - there aren't.
Try this ...

//              $codetext.pop();
//              $codetext.shift();
if(!$codetext[$codetext.length-1]) delete
$codetext[$codetext.length-1];
if(!$codetext[0]) delete $codetext[0];

...and you'll see the end result. Your pop() and shift() were actually
removing the entire *single* element of $codetext as returned by IE
(post split).

On Oct 13, 7:52 am, Rob <[EMAIL PROTECTED]> wrote:
> I know this should be simple, I know this should work, but it isn't
> and doesn't.
>
> so if you take a look-see 
> athttp://www.roberthenrylowe.com/lab/jQuery/codeconverter.html
> in Firefox, you'll see what I am trying to accomplish and in fact, it
> works there. Basically I take a <code> block and make it a fancy
> formatted <ol>, except in IE, the jQuery code found 
> athttp://www.roberthenrylowe.com/lab/jQuery/codeconverter.jsfails
> silently around line 20 and don't understand why. Can anyone help out?
>
> Thanks!

Reply via email to