Re: Line breaks in comments.
Dan Tsimbala <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
I need serializer for in page HTML editor (aka FCK Editor). I develop on MAC but also tested this on both OSX and WinXP. So yes it's directly in JS. On Thu, Feb 12, 2009 at 4:21 PM, Boris Zbarsky <[email protected]> wrote: > Dan Tsimbala wrote: > >> It's probably nothing you can help me with, but I'm just curious about >> reasons. I'm writing my own HTML DOM serializer, and I'm facing the >> following problem - all the line breaks inside comment nodes are changed >> when HTML was parsed. I'm using MAC OS X 10.5 which uses Unix line breaks >> LF, so my source contains only them. When I'm trying to serialize the >> source >> (and even innerHTML itself has the same issue) with my serializer the line >> breaks in the text nodes will be correct (LF), but the line break in the >> comment nodes will be replaced by CR+LF. >> > > Is your serializer implemented directly in JavaScript, or on top of Gecko's > DOM serializer? > > Are you running on Windows or Mac (your mention of IE is confusing me a > bit, unless you're talking about IE5). > > -Boris > _______________________________________________ > dev-tech-dom mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-tech-dom >