From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2001:558:fe21:29:69:252:207:39; helo=resqmta-ch2-07v.sys.comcast.net; envelope-from=eklhad@comcast.net; receiver= Received: from resqmta-ch2-07v.sys.comcast.net (resqmta-ch2-07v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:39]) by hurricane.the-brannons.com (Postfix) with ESMTPS id F124377DE8 for ; Mon, 21 Aug 2017 13:01:33 -0700 (PDT) Received: from resomta-ch2-04v.sys.comcast.net ([69.252.207.100]) by resqmta-ch2-07v.sys.comcast.net with ESMTP id jstKdVRKFcYADjstVdTZeO; Mon, 21 Aug 2017 20:01:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1503345713; bh=Fx0oN2c7plONWEAaNKAHBRbbc+4rQQ4Jjf8IEnwMNaY=; h=Received:Received:To:From:Reply-to:Subject:Date:Message-ID: Mime-Version:Content-Type; b=hM+5TJR61i8Pv1J3QbK3BUeKHrK6IOcGvk5ztyh75J47QXrkuWBysnATNP0BCLNW1 QUvznYQJVb1qkyvQVrGQuVcAQirIKekx7DHoj+yY4ojoTJxr+bqzp2q+ZUE0TvcNlU aM4BtREXZHSEJEuSQqA7NVVgQr6W92gYqY6plVa+3Co5ICFtjO7LrI1guPHAVopuOC qF1JVV5Jq+afWb5ozK59UAcz5zHsH03jBP2As3bmQGvMMkE68JGYkkNTRzm8RFRtnD 8MpHXiiKW0IpcYh9klBomSX+evj3WbKgvv6DT/rFsnILdqowBQV7lPicmPjjtTUXPP RzdmXtdGE64zA== Received: from unknown ([IPv6:2601:408:c301:784d:21e:4fff:fec2:a0f1]) by resomta-ch2-04v.sys.comcast.net with SMTP id jstUdUI5jN1TYjstVdjYKz; Mon, 21 Aug 2017 20:01:53 +0000 To: Edbrowse-dev@lists.the-brannons.com From: Karl Dahlke Reply-to: Karl Dahlke References: <20170719113834.eklhad@comcast.net> User-Agent: edbrowse/3.7.0+ Date: Mon, 21 Aug 2017 16:01:52 -0400 Message-ID: <20170721160152.eklhad@comcast.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=nextpart-eb-775520 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfA8V6UtWTvaRrKs55as8GkqFmD1C5Tc+UgSozRHvJnwXp/rdZmIMAPnd+HG6nNMDEq9jUVey445aHsaQw62tKLxUUekmEUzXJakp01MPGM7ng+bFZ2LG Eefv5ChvLI1ngPpehRuEKw7f8tIL5IT2lyznhP8dH52Chh0jPz2+R9OU Subject: [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: Mon, 21 Aug 2017 20:01:34 -0000 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --nextpart-eb-775520 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ok I now convert foo-bar to fooBar, as you suggest, and as the acid = test 0 suggests, but I think it's wweird. You say you're not finding the right properties in penultimate, but oh = boy it's very subtle. There are several problems at play. The selector we're looking for is #instructions:last-child, and I had = to read some of the MIT code to see what that meant. It means the node with id=3Dinstructions, and it has to be the last = nontrivial child of its parent, where nontrivial beans nodeType =3D 1. So a silly empty whitespace node doesn't count. At the time the acid test runs, and at the time it calls = getComputedStyle() to make its calculation, it has already removed the paragraph after instructions, and the = instructional paragraph is indeed the last child of its parent. So getComputedStyle creates a style object for this node, and it should = have whiteSpace set properly, but it's just a dynamically created style = node, it's not the actual style attached to the node. That style we might be messing with, might change it to green etc. getcomputedStyle simply tells you what the style would be, right now, = if all the rules were applied. So I'm starting to unravel that but there's another problem. After this test runs, and succeeds or fails, another script runs and = does a document.write which adds all sorts of nodes to body. So now the browse is done, and you get into jdb, and you try to = reproduce this stuff, but you can't, because instructions isn't the last child of its parent any more. It was but it isn't any more, so the machinery looks like it's not = working but it works just fine. So - I think we are just one step away from test 0 passing. 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. If tidy doesn't give us those nodes, then acid test 0 will never pass. Karl Dahlke --nextpart-eb-775520--