Re: Line breaks in comments.

Dan Tsimbala <[email protected]>
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <[email protected]>
Well i actually did the wrong assumption. After some research, I actually
found that the file itself contains CR+LF everywhere (some people just don't
like to solve this issues using SVN possibilities). So the comment atually
preserved the original line break from the source. But then the problem
still stays - line breaks in text nodes are transformed into LF. I've
attached the test page (is this possible to send attachments?). I wouldn't
particularly mind about doing the transformation, but then it should be done
for everything. I've stated Webkit preserves them, but I was actually wrong
- it transforms all to LF, but at least this is consistent approach. Opera
seems to preserve everyting, but not sure if in the latest version.

So consistency in this would help writing unit tests form my serializer, and
also if I want to create an in page WYSIWYG editor it's a little
disappointing that I can not preserve the original source formatting at
least (not mentioning things like entities, cause that's far out of the
topic).

On Thu, Feb 12, 2009 at 6:42 PM, Boris Zbarsky <[email protected]> wrote:

> Dan Tsimbala wrote:
>
>> 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.
>>
>
> Can you possibly point me to a test page that shows the problem, then? I
> don't think we do anything obviously different in terms of the DOM for
> textnodes and comments.
>
>
> -Boris
> _______________________________________________
> dev-tech-dom mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-tech-dom
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.