From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from resqmta-ch2-02v.sys.comcast.net (resqmta-ch2-02v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:34]) by hurricane.the-brannons.com (Postfix) with ESMTPS id CB3A478F6A for ; Tue, 13 Jan 2015 15:45:06 -0800 (PST) Received: from resomta-ch2-06v.sys.comcast.net ([69.252.207.102]) by resqmta-ch2-02v.sys.comcast.net with comcast id fbiP1p0062D5gil01biVuC; Tue, 13 Jan 2015 23:42:29 +0000 Received: from eklhad ([IPv6:2601:4:5380:4ee:219:21ff:feb9:ba8d]) by resomta-ch2-06v.sys.comcast.net with comcast id fbiV1p00808MP5701biV91; Tue, 13 Jan 2015 23:42:29 +0000 To: Edbrowse-dev@lists.the-brannons.com From: Karl Dahlke Reply-to: Karl Dahlke User-Agent: edbrowse/3.5.2 Date: Tue, 13 Jan 2015 18:42:29 -0500 Message-ID: <20150013184229.eklhad@comcast.net> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1421192549; bh=EbH69+pTxfKzM64UIlRgGeuttH3hoUAhmQM/dGtQ6w0=; h=Received:Received:To:From:Reply-to:Subject:Date:Message-ID: Mime-Version:Content-Type; b=JEEXe6YTlXelaIR0iSBeFNSI8/0VDZkW56iO5n4dzLoq2JsrvmnP7VUlk/ErJGBGe B9DOKtkfeKgWxE5mtqtQJZsHv01LaWsZBW+nvO8mj4XEHlF8z4tvdxaXGdEIGpg5cN vRpRnwJsChh1HuDy8KJwkuBAEHmRXdJbvfo4EzC/qxEnmdm8CeuLj73UXYXncdzikk H2ow4lRl8bSTS5kj6DVKVXa7fF71yK8/DRhkS17nkwFsGwFjXOlPV8oqj1LwORyFid yrobPwE7ydhqNL8Si72Ielh7eYcsO9jE5qk0muvKyTUFXecnHFcyF0SOiEQ9/jRT3N uatJtqZzemwFw== Subject: [Edbrowse-dev] startwindow.js changes X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jan 2015 23:45:07 -0000 > the function returns the created element to javascript > which then inserts it into the DOM in the correct position, Yes, but that's just part of it. Each tag/element is put in the tree in its correct position, and also put in the list. It is linked in two places. That's how it works when produced by html.
creates a form object, which is somewhere in the dom tree, and *also* in the list of forms. I guessed, not much more than a guess, that that is how it works for elements created dynamically. An element e is placed somewhere in dom, as directed by javascrtip, and also put on the list of said elements, that part perhaps happening automatically. So I made the second part happen automatically, again being just a guess. Maybe the only way to know if my guess is right is to write some javascrtip, createElement, and alert document.list.length, and run it in a commercial browser and see what it says. We may be doing more and more of this; it's just hard to find descriptions of how this stuff really works on the internet. Karl Dahlke