Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #28505

Re: Recursive function to find a node in the DOM

Path csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.datemas.de!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: Recursive function to find a node in the DOM
Supersedes <1975259.5Zumhuk1Z6@PointedEars.de>
Date Thu, 06 Aug 2015 20:15:29 +0200
Organization PointedEars Software (PES)
Lines 38
Message-ID <1443069.sYRfn84SoE@PointedEars.de> (permalink)
References <mo53os$am9$1@dont-email.me> <4508534.oS5OQyzpKv@PointedEars.de> <4b1cb0ba-f0b0-4b25-a1aa-692c30e69833@googlegroups.com> <mol6so$48v$1@dont-email.me> <1625412.DiW0shChWm@PointedEars.de> <molf6c$2l1$1@dont-email.me> <1516357.lIjpcpmlPf@PointedEars.de> <4be984b1-7744-4271-acd8-a6a625977504@googlegroups.com> <mpv4ml$blj$1@dont-email.me>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8Bit
X-Trace solani.org 1438885150 3736 eJwFwYEBwCAIA7CXZLQVzkGU/09YQpepN0SBw+nGfqfTEUvf6npT7cyagkph75BB3hrcNPwugBGU (6 Aug 2015 18:19:10 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Thu, 6 Aug 2015 18:19:10 +0000 (UTC)
User-Agent KNode/4.14.2
Cancel-Key sha1:Eap+Pj17C1ZxKwUDxxAXOwR/nMY=
X-User-ID eJwNyEkBwDAIBEBLnJsgBwj4l9DOc1zB6GNwmK9vEckoORVBuO00UJxRFQXt0o1JvE6+9+0YO4R2/hXES/sATzcV4w==
Cancel-Lock sha1:WjpE1SZJBnen2v7Fd3Q6C8zJo7g=
X-NNTP-Posting-Host eJwNycERACEIA8CWiJAwlHOi9F+Ct9+lC+oMUcHh1Ocnt8xoG+Xr1gIvw+LUH90tFekDRFviAQjIEDk=
Xref csiph.com comp.lang.javascript:28505

Show key headers only | View raw


danca (Daniele Campagna) wrote:

> I copy/paste the following paragraph, extracted from a mail I sent
> someone, on the subject:
> 
> ----
> But: one last consideration about the risk to crash due to wild increase
> of the call stack.
> You seems to think that if a document has a zillion nodes, the recursive
> function will create a zillion of calls and subsequently a stack of a
> zillion elements. It is not the case. What really matter is how deep is
> a nested node from the starting node, because the algorythm calls itself
> only to go to the next child node, but returns (and decreases the call
> stack) when the current branch of the tree ends!!
> 
> So I really don't think that a DOM can have a node nested more than,
> say, a few dozen of levels, and this is the maximum amount the stack
> will reach!
> ----

You know very well that I have replied to your e-mail and you have agreed 
that your argument was not sound.  I told you that I did not make the 
assumption you insuated there, at all.  In fact, you told me you had used 
your script on a large document and it failed; if not because of stack 
overflow, because of something else that you could not determine at the 
time – meaning you could not handle the complexity of the approach.  Now, 
two weeks later you are showing off here as if nothing happened.

All this tells me that you are not trustworthy, and that I have wasted my 
time with you after all.

Score adjusted

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not cc me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Recursive function to find a node in the DOM "danca (Daniele Campagna)" <cyberdanny@tiscalinet.it> - 2015-07-15 09:59 +0200
  Re: Recursive function to find a node in the DOM Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-15 11:59 +0200
    Re: Recursive function to find a node in the DOM Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-15 12:03 +0200
    Re: Recursive function to find a node in the DOM "danca (Daniele Campagna)" <cyberdanny@tiscalinet.it> - 2015-07-15 13:36 +0200
      Re: Recursive function to find a node in the DOM Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-19 12:27 +0200
        Re: Recursive function to find a node in the DOM Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-19 12:34 +0200
        Re: Recursive function to find a node in the DOM "danca (Daniele Campagna)" <cyberdanny@tiscalinet.it> - 2015-07-21 12:08 +0200
          Re: Recursive function to find a node in the DOM Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-25 14:11 +0200
            Re: Recursive function to find a node in the DOM "danca (Daniele Campagna)" <cyberdanny@tiscalinet.it> - 2015-07-25 21:22 +0200
              Re: Recursive function to find a node in the DOM Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-27 16:12 +0200
    Re: Recursive function to find a node in the DOM "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-08-08 04:50 +0200
      Re: Recursive function to find a node in the DOM Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-08-08 09:33 +0200
        Re: Recursive function to find a node in the DOM "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-08-12 00:48 +0200
          Re: Recursive function to find a node in the DOM Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-08-12 01:18 +0200
            Re: Recursive function to find a node in the DOM "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-08-13 23:26 +0200
              Re: Recursive function to find a node in the DOM Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-08-16 08:48 +0200
                Re: Recursive function to find a node in the DOM "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-08-20 02:11 +0200
  Re: Recursive function to find a node in the DOM Scott Sauyet <scott.sauyet@gmail.com> - 2015-07-18 15:59 -0700
    Re: Recursive function to find a node in the DOM "danca (Daniele Campagna)" <cyberdanny@tiscalinet.it> - 2015-07-21 12:30 +0200
      Re: Recursive function to find a node in the DOM Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-21 13:53 +0200
        Re: Recursive function to find a node in the DOM "danca (Daniele Campagna)" <cyberdanny@tiscalinet.it> - 2015-07-21 14:51 +0200
          Re: Recursive function to find a node in the DOM Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-21 16:05 +0200
            Re: Recursive function to find a node in the DOM "danca (Daniele Campagna)" <cyberdanny@tiscalinet.it> - 2015-07-21 20:35 +0200
            Re: Recursive function to find a node in the DOM Scott Sauyet <scott.sauyet@gmail.com> - 2015-07-30 22:10 -0700
              Re: Recursive function to find a node in the DOM "danca (Daniele Campagna)" <cyberdanny@tiscalinet.it> - 2015-08-06 10:07 +0200
                Re: Recursive function to find a node in the DOM Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-08-06 20:15 +0200
                Re: Recursive function to find a node in the DOM "danca (Daniele Campagna)" <cyberdanny@tiscalinet.it> - 2015-08-08 01:21 +0200
        Re: Recursive function to find a node in the DOM Scott Sauyet <scott.sauyet@gmail.com> - 2015-07-30 22:09 -0700
  Re: Recursive function to find a node in the DOM Denis McMahon <denismfmcmahon@gmail.com> - 2015-07-29 03:04 +0000
    Re: Recursive function to find a node in the DOM "danca (Daniele Campagna)" <cyberdanny@tiscalinet.it> - 2015-08-06 10:20 +0200

csiph-web