From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (mailfrom) identity=mailfrom; client-ip=8.23.224.62; helo=out.smtp-auth.no-ip.com; envelope-from=kevin@carhart.net; receiver= Received: from out.smtp-auth.no-ip.com (smtp-auth.no-ip.com [8.23.224.62]) by hurricane.the-brannons.com (Postfix) with ESMTPS id F314A77DCD for ; Fri, 25 Aug 2017 01:18:34 -0700 (PDT) X-No-IP: carhart.net@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from carhart.net (unknown [99.52.200.227]) (Authenticated sender: carhart.net@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id B41533F2 for ; Fri, 25 Aug 2017 01:19:02 -0700 (PDT) Received: from carhart.net (localhost [127.0.0.1]) by carhart.net (8.13.8/8.13.8) with ESMTP id v7P8J1qT019678 for ; Fri, 25 Aug 2017 01:19:01 -0700 Received: from localhost (kevin@localhost) by carhart.net (8.13.8/8.13.8/Submit) with ESMTP id v7P8J1HK019675 for ; Fri, 25 Aug 2017 01:19:01 -0700 Date: Fri, 25 Aug 2017 01:19:00 -0700 (PDT) From: Kevin Carhart To: Edbrowse-dev@lists.the-brannons.com In-Reply-To: <20170721160152.eklhad@comcast.net> Message-ID: References: <20170719113834.eklhad@comcast.net> <20170721160152.eklhad@comcast.net> User-Agent: Alpine 2.03 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: [Edbrowse-dev] getAttributeNode / setAttributeNode X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.24 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Aug 2017 08:18:35 -0000 Thank you for the writeup of the routines in qS (my abbreviation for the third party querySelector code) that are called for #instructions:last-child! This writeup is very helpful. > The test expects a blank node between the two paragraphs, a node corrresponding to the newline character, an empty node, a node of nodeType 0, > but tidy doesn't give us this node, so nothing lines up. > I asked Geoff about this and am waiting for his reply. So does this mean that all pages should have tons of these nodes all over the place? I guess we will know soon enough when certain persons are available. :=)) Or we could start a thread about this under Issues. But I am trying to play along in case I can make some headway now. Maybe it is comparable to the options we already set in html-tidy.c: tidyOptSetBool(tdoc, TidyEscapeScripts, no); tidyOptSetBool(tdoc, TidyDropEmptyElems, no); tidyOptSetBool(tdoc, TidyDropEmptyParas, no); My candidates so far are TidyNewline and TidyEmptyTags. I don't know what they do yet - those are just the ones with plausible names. For anyone reading who doesn't already know, there is a long list of tidy config options under tidy-html5-master/src, FYI. Kevin