From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-x231.google.com (mail-wm0-x231.google.com [IPv6:2a00:1450:400c:c09::231]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 99C3B78953 for ; Tue, 3 Nov 2015 00:19:56 -0800 (PST) Received: by wmeg8 with SMTP id g8so8127463wme.1 for ; Tue, 03 Nov 2015 00:20:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=jMvAb1idDrjSGCPrvh5W1jiPqJ4AZX2Zwx94WP3WvGY=; b=GEVsSqGUtklrLH722N0exsFcGSz1JAL6rd8Khu8QCZLDhm7rxxsVd7y5nj5SaiWtV7 zr7wnDhsCLvgmPXlz/YcWMsUibhcJQ+bReYeK6jaC/WTCKx48sMGS57WdexDEbdxTIsk 74Svtqb9AWM0kyyuW/xBpo+hCaNuDtv+DGq5VZqOMTseNqyccev/m9ovi91s4H1MqvVs 7yhenjRA1inqJ0Ia83+Msv2z9pXG2ZG8y24kbOGSh3VfDX8BXqqviHqrG366AMSVIWQq Our6muDT7duJjH9U77n5td4DOt7q9D48WE7N64ng/jhV0uQZFeNGGJjxyIcR0yms6tbM EBbQ== X-Received: by 10.28.18.3 with SMTP id 3mr19179711wms.67.1446538815741; Tue, 03 Nov 2015 00:20:15 -0800 (PST) Received: from toaster.adamthompson.me.uk (toaster.adamthompson.me.uk. [2001:8b0:1142:9042::2]) by smtp.gmail.com with ESMTPSA id it4sm26371630wjb.0.2015.11.03.00.20.14 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Nov 2015 00:20:15 -0800 (PST) Date: Tue, 3 Nov 2015 08:20:13 +0000 From: Adam Thompson To: Karl Dahlke Cc: Edbrowse-dev@lists.the-brannons.com Message-ID: <20151103082013.GB14583@toaster.adamthompson.me.uk> References: <20151002184159.eklhad@comcast.net> <20151003030205.eklhad@comcast.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Sr1nOIr3CvdE5hEN" Content-Disposition: inline In-Reply-To: <20151003030205.eklhad@comcast.net> User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [Edbrowse-dev] Red Hot X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Nov 2015 08:19:57 -0000 --Sr1nOIr3CvdE5hEN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 03, 2015 at 03:02:05AM -0500, Karl Dahlke wrote: > Always investigate every mystery. > It's always trying to tell us something. >=20 > This infinite loop is caused by: >=20 > for(;e.firstChild;) > e.removeChild(e.firstChild); >=20 > Clearing all the nodes out from under e, simple enough, > but I implemented firstChild as a function, e.firstChild(), > so e.firstChild is always true. > Oops. > firstChild is a property, a magic property > that always means this.childNodes[0]. > Wow, how can we implement that? > Well there's a way, and it doesn't require native code, thank heaven, > but I will need to muck with all the firstChilds in starrtwindow.js, > so I think I'll hold off until Kevin sends me his next cloneNode. Excellent, thanks for spotting this Karl. I'm interested to know how one implements such magic, will be fascinated to see the code. Cheers, Adam. PS: can/should we implement a timeout for these calls pending proper asynchronicity? --Sr1nOIr3CvdE5hEN Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJWOG49AAoJELZ22lNQBzHO364H/2fo0vEUkzEoLVOZasPmyHOo hsxj111Wt+Uj1ZTXZ+L1llbC0Z4mrV7/INShnhE2qAe3ZzQAhr5hDARv0/Vp0DCo VUSs3gcopEhiT3Iq/IkgZllTdveR+NAxycTKo07SJvBTd8IsXyew2F9s1uAYAOl/ ZBbZuRJlMmFlhd2lqevGnYkcdIEt6uZtkCScoqlvfj61n7pkpRYtKNgNhJjD4OYP ol5ReAxBQ4u56HB8RqfPwjlToRYu2Z46EuggtxFx59c9zJ6vb/cZ/KOjxXCQ3AGm WL/VyLDFqHJuUtCvFnxASy6zhxGZkisQn0fM4/HHS1ZJqmBSdge+ptzr6/wXuk0= =GnTQ -----END PGP SIGNATURE----- --Sr1nOIr3CvdE5hEN--