yannis | 3 Feb 2009 20:23
Picon

Re: How to capture a navigation event before it happens?

I have a very similar problem. Does anybody know if the xulrunner SDK
exposes methods for triggering JS events for a specific DOM node? Any
pointer would be useful.

Thanks,
J
Dan Tsimbala | 12 Feb 2009 14:33
Picon

Line breaks in comments.

Hi!

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. I see that IE does the same with
comments, but it also messes up text nodes with whitespaces comepletely, so
I guess it's no wonder about them. I didn't get to Opera still, but Webkit
preserves everything nicely. Are there any reasons about this? Is there a
way to retrieve initial chars or are they lost during parsing?

Just don't want to write my own HTML DOM parser, although I'm becoming more
and more convinced this is the only solution for all the problems at once.

Thanx in advance!
Dan
Boris Zbarsky | 12 Feb 2009 16:21
Picon
Favicon

Re: Line breaks in comments.

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
Dan Tsimbala | 12 Feb 2009 18:30
Picon

Re: Line breaks in comments.

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 <bzbarsky <at> mit.edu> 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
> dev-tech-dom <at> lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-tech-dom
>
(Continue reading)

Boris Zbarsky | 12 Feb 2009 18:42
Picon
Favicon

Re: Line breaks in comments.

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
Dan Tsimbala | 13 Feb 2009 10:55
Picon

Re: Line breaks in comments.

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 <bzbarsky <at> mit.edu> 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.
>
(Continue reading)

Boris Zbarsky | 13 Feb 2009 15:28
Picon
Favicon

Re: Line breaks in comments.

Dan Tsimbala wrote:
> Well i actually did the wrong assumption. After some research, I actually
> found that the file itself contains CR+LF everywhere

Ah, yes.  We do newline normalization to LF in textnodes, but not 
comments.  That's a bug; per DOM spec we should be doing it everywhere.

Luckily, the parser's being rewritten anyway, which should hopefully 
just fix this.

-Boris
iwcwatches91 | 18 Feb 2009 03:28
Picon

Bulgari Bvlgari Rettangolo Watch, Best Wristwatch

Bulgari Bvlgari Rettangolo Watch, Best Wristwatch
Fashion Watches: http://www.watchess.net/
Bulgari Watches: http://www.watchess.net/Bulgari_Watches.html
Bulgari Bvlgari Rettangolo Watch: http://www.watchess.net/Bulgari_Bvlgari_Rettangolo.html

Bulgari Bvlgari Rettangolo All Hot Luxury Wristwatch :

Bvlgari Rettangolo Watch RTC49BSSD :
  http://www.watchess.net/Bvlgari_Rettangolo_Watch_RTC49BSSD.html
Bvlgari Rettangolo Watch RT45C6LSSD :
  http://www.watchess.net/Bvlgari_Rettangolo_Watch_RT45C6LSSD.html
Bvlgari Rettangolo Watch RTC49SVD :
  http://www.watchess.net/Bvlgari_Rettangolo_Watch_RTC49SVD.html
Bvlgari Rettangolo Mens Watch RTC49GLD :
  http://www.watchess.net/Bvlgari_Rettangolo_Mens_Watch_RTC49GLD.html
Bvlgari Rettangolo Watch RT39BSS :
  http://www.watchess.net/Bvlgari_Rettangolo_Watch_RT39BSS.html
Bvlgari Rettangolo Watch RT39SL :
  http://www.watchess.net/Bvlgari_Rettangolo_Watch_RT39SL.html
Bvlgari Rettangolo Ladies Watch RTW39GD1G :
  http://www.watchess.net/Bvlgari_Rettangolo_Ladies_Watch_RTW39GD1G.html
Bvlgari Rettangolo Mens Watch RT39GL :
  http://www.watchess.net/Bvlgari_Rettangolo_Mens_Watch_RT39GL.html
Bvlgari Rettangolo Steel and Black Rubber Mens Watch 101181 :
  http://www.watchess.net/Bvlgari_Rettangolo_Steel_and_Black_Rubber_Mens_Watch_101181.html
Bvlgari Rettangolo Ladies Watch RT39C6LSS :
  http://www.watchess.net/Bvlgari_Rettangolo_Ladies_Watch_RT39C6LSS.html
Bvlgari Rettangolo Mens Watch RTC49C6LSSD :
  http://www.watchess.net/Bvlgari_Rettangolo_Mens_Watch_RTC49C6LSSD.html
Bvlgari Rettangolo Ladies Watch RT39SS :
(Continue reading)

iwcwatches91 | 18 Feb 2009 03:28
Picon

Ebel Beluga Watch, Best Wristwatch

Ebel Beluga Watch, Best Wristwatch
Fashion Watches: http://www.watchess.net/
Ebel Watches: http://www.watchess.net/Ebel_Watches.html
Ebel Beluga Watch: http://www.watchess.net/Ebel_Beluga.html

Ebel Beluga All Hot Luxury Wristwatch :

Ebel Beluga Mother-of-Pearl Diamond Ladies Watch 1215311 :
  http://www.watchess.net/Ebel_Beluga_Mother_of_Pearl_Diamond_Ladies_Watch_1215311.html
Ebel Beluga Steel Ladies Watch 1215314 :
  http://www.watchess.net/Ebel_Beluga_Steel_Ladies_Watch_1215314.html
Ebel Beluga Mother-of-Pearl Diamond Mini Ladies Watch 1215322 :
  http://www.watchess.net/Ebel_Beluga_Mother_of_Pearl_Diamond_Mini_Ladies_Watch_1215322.html
Ebel Beluga Tonneau 18kt Yellow Gold Ladies Watch 8656G21.99970 :
  http://www.watchess.net/Ebel_Beluga_Tonneau_18kt_Yellow_Gold_Ladies_Watch_8656G21.99970.html
Ebel Beluga Mother-of-Pearl Diamond Mini Ladies Watch 1215325 :
  http://www.watchess.net/Ebel_Beluga_Mother_of_Pearl_Diamond_Mini_Ladies_Watch_1215325.html
Ebel Beluga Mini Stainless Steel Diamond Ladies Watch
9003418/9996050 :
  http://www.watchess.net/Ebel_Beluga_Mini_Stainless_Steel_Diamond_Ladies_Watch_9003418_9996050.html
Ebel Beluga Manchette Womens Watch 9057A21-9850 :
  http://www.watchess.net/Ebel_Beluga_Manchette_Womens_Watch_9057A21_9850.html
Ebel Beluga Lady Stainless Steel Ladies Watch 9976428.9976050 :
  http://www.watchess.net/Ebel_Beluga_Lady_Stainless_Steel_Ladies_Watch_9976428.9976050.html
Ebel Beluga Mini Stainless Steel Ladies Watch 9003411/99950 :
  http://www.watchess.net/Ebel_Beluga_Mini_Stainless_Steel_Ladies_Watch_9003411_99950.html
Ebel Beluga Lady 18kt Yellow Gold Ladies Watch 8976428.9995050 :
  http://www.watchess.net/Ebel_Beluga_Lady_18kt_Yellow_Gold_Ladies_Watch_8976428.9995050.html
Ebel Beluga Mother-of-Pearl Diamond Ladies Watch 1215305 :
  http://www.watchess.net/Ebel_Beluga_Mother_of_Pearl_Diamond_Ladies_Watch_1215305.html
(Continue reading)

iwcwatches91 | 18 Feb 2009 03:28
Picon

Christian Dior Christal Watch, Best Wristwatch

Christian Dior Christal Watch, Best Wristwatch
Fashion Watches: http://www.watchess.net/
Christian Dior Watches: http://www.watchess.net/Christian_Dior_Watches.html
Christian Dior Christal Watch: http://www.watchess.net/Christian_Dior_Christal.html

Christian Dior Christal All Hot Luxury Wristwatch :

Christian Dior Christal Ladies Watch CD112118M001 :
  http://www.watchess.net/Christian_Dior_Christal_Ladies_Watch_CD112118M001.html
Christian Dior Christal Chronograph Ladies Watch CD114311M002 :
  http://www.watchess.net/Christian_Dior_Christal_Chronograph_Ladies_Watch_CD114311M002.html
Christian Dior Christal Ladies Watch CD113114M001 :
  http://www.watchess.net/Christian_Dior_Christal_Ladies_Watch_CD113114M001.html
Christian Dior Christal Chronograph Ladies Watch CD114311M001 :
  http://www.watchess.net/Christian_Dior_Christal_Chronograph_Ladies_Watch_CD114311M001.html
Christian Dior Christal Ladies Watch CD113111M002 :
  http://www.watchess.net/Christian_Dior_Christal_Ladies_Watch_CD113111M002.html
Christian Dior Christal Ladies Watch CD113118M001 :
  http://www.watchess.net/Christian_Dior_Christal_Ladies_Watch_CD113118M001.html
Christian Dior Christal Ladies Watch CD113112M002 :
  http://www.watchess.net/Christian_Dior_Christal_Ladies_Watch_CD113112M002.html
Christian Dior Christal Ladies Watch CD112113M002 :
  http://www.watchess.net/Christian_Dior_Christal_Ladies_Watch_CD112113M002.html
Christian Dior Christal Ladies Watch CD113112M001 :
  http://www.watchess.net/Christian_Dior_Christal_Ladies_Watch_CD113112M001.html

Gmane