Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: Recursive function to find a node in the DOM Date: Mon, 27 Jul 2015 16:12:07 +0200 Organization: PointedEars Software (PES) Lines: 35 Message-ID: <1598396.k6ieFuH4ol@PointedEars.de> References: <5530725.v0RXNFEj4j@PointedEars.de> <4029225.tIX9iqhVEp@PointedEars.de> <1458271.t0pGGtDH7K@PointedEars.de> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: solani.org 1438006533 2347 eJwNwgERwDAIA0BLtISwyAHW+pew/X04FyfBIOLGJZyjpyD1m9uPIXzl2K42DY/glYPSPzs+BvQQfA== (27 Jul 2015 14:15:33 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Mon, 27 Jul 2015 14:15:33 +0000 (UTC) User-Agent: KNode/4.14.2 X-User-ID: eJwNw4ENACEIA8CVVKSUcSyB/Uf4v+TcsFFx4bg+PuufNTidOnwxJtGC0eYNpHDIo9TKysvZpf2aNnqIYn1b7RXt Cancel-Lock: sha1:YyhfntB1hDN9y4GOJPWYjwEL0zY= X-NNTP-Posting-Host: eJwFwQkBwDAIA0BLfAmrHGjBv4Tdwam8GQQDi9Ujs60QEfR5nhP9RcXY4Caq1mhbA7vjj/EDGaIRVA== Xref: csiph.com comp.lang.javascript:28474 danca (Daniele Campagna) wrote: > Il 07/25/2015 02:11 PM, Thomas 'PointedEars' Lahn ha scritto: >>> IE 7 (and IE 8 in compatibility mode) both show a gracious bug. >> Which would be? I must have missed that. > > document.forms[n]. > or > document.forms[n][] > return undefined. Ah, that. Yes, the workaround is to set the item of the collection yourself: newElement.name = ""; // […] document.forms[n][""] = newElement; It is the same with (i)frames and maybe other element types. >>> - mysterios bug in Opera in printing a frame >>> - bug in Opera in iframes readystate >>> - bug in IE about the test for the existence of a method in designmode >>> - bug in Firefox if trying to get a specific property of a window >> Specify. > > […] Thanks, I will review that later. -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not cc me. / Bitte keine Kopien per E-Mail.