From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from resqmta-ch2-01v.sys.comcast.net (resqmta-ch2-01v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:33]) by hurricane.the-brannons.com (Postfix) with ESMTPS id CD8A377BBD for ; Fri, 28 Aug 2015 19:23:43 -0700 (PDT) Received: from resomta-ch2-06v.sys.comcast.net ([69.252.207.102]) by resqmta-ch2-01v.sys.comcast.net with comcast id ASRe1r0052D5gil01SRtEF; Sat, 29 Aug 2015 02:25:53 +0000 Received: from eklhad ([IPv6:2601:405:4002:b0a:21e:4fff:fec2:a0f1]) by resomta-ch2-06v.sys.comcast.net with comcast id ASRt1r0030GArqr01SRtcj; Sat, 29 Aug 2015 02:25:53 +0000 To: Edbrowse-dev@lists.the-brannons.com From: Karl Dahlke Reply-to: Karl Dahlke References: <20150728184529.kevin@carhart.net > User-Agent: edbrowse/3.5.4.2+ Date: Fri, 28 Aug 2015 22:25:53 -0400 Message-ID: <20150728222553.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=1440815153; bh=/dcK8zmowl0eAn6OSMIllFa9fmNUNN11KGzt25Ze8zw=; h=Received:Received:To:From:Reply-to:Subject:Date:Message-ID: Mime-Version:Content-Type; b=Rpjw/MOVrP60X8lOoBg7CWLal9yXY2NLRzq4HHnrFiIxdT2YZqTFXHu+dZkKeYI3i JHXg3F1Vq6lCDEWj6iQPdGozv4gCiubAu/wQQ+pQ0C/PiDHi3sF76Esm47qzc0y2YF nj4W+GuQ4bP8eC0Mv3zoHZENYUBaJpVBfNLIEQQ03xuv1I8BTb5XdUJ4vtRwW8EDgD 0ZZaxALzx+BGYrUeaOhVy7pbaYkqTIjccdd81dJfVMnLDpDa61SsJFIAZhLk9EHYrj oGd77TJy9No13hajKip5OuCqooUoNE/p8ZNvzSoi3kywfC0MQJntc/Kzt6YoEdx/Ep 5pQiqF0CeIWSQ== Subject: [Edbrowse-dev] tidy tree 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: Sat, 29 Aug 2015 02:23:44 -0000 > I introduced two routines from the sample code: dumpBody and dumpNode. Obviously the sample code has saved us all some time. This template is far more valuable then just debugging and visualization; we will want to traverse the tree in the same way and fold those nodes into our nodes, and create the js objects, and put all the attributes in as object members, and so on. So this is all good, and surprisingly concise. If no one objects I will probably make some small tweaks and push this, it's just db5 prints so shouldn't hurt anything. There's no \r in your patch so I should have no trouble applyihng it. Once in, we'll want to test it on all sorts of html, especially embedded with javascript, to make sure the nodes are correct. After all, we don't know for sure that we can even use this yet, the conversion from html to nodes has to be almost perfect. Though I suppose we could report any bugs to the tidy5 team. Karl Dahlke