From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (mailfrom) identity=mailfrom; client-ip=8.23.224.63; 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.63]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 2D02677DE8 for ; Tue, 15 Aug 2017 17:18:39 -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 F33F141E for ; Tue, 15 Aug 2017 17:18:45 -0700 (PDT) Received: from carhart.net (localhost [127.0.0.1]) by carhart.net (8.13.8/8.13.8) with ESMTP id v7G0Ig4q018259 for ; Tue, 15 Aug 2017 17:18:43 -0700 Received: from localhost (kevin@localhost) by carhart.net (8.13.8/8.13.8/Submit) with ESMTP id v7G0Iglh018252 for ; Tue, 15 Aug 2017 17:18:42 -0700 Date: Tue, 15 Aug 2017 17:18:41 -0700 (PDT) From: Kevin Carhart To: Edbrowse-dev@lists.the-brannons.com In-Reply-To: <20170715193834.eklhad@comcast.net> Message-ID: References: <20170715193834.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: [Edbrowse-dev] script in tree of document.written elements? 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: Wed, 16 Aug 2017 00:18:39 -0000 I found out something potentially important and good. It is relevant to test zero, and actually has implications for a lot of other tests. Consider this mini page, hello.html Should the inserted

have So it merrily removes all of that stuff inside of document.write. Subsequent tests try to find those elements and they no longer exist! If script does not occur in the tree of those iframe, form, etc, then they will be available later on! Kevin 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:40; helo=resqmta-ch2-08v.sys.comcast.net; envelope-from=eklhad@comcast.net; receiver= Received: from resqmta-ch2-08v.sys.comcast.net (resqmta-ch2-08v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:40]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 3560877DE5 for ; Tue, 15 Aug 2017 19:53:32 -0700 (PDT) Received: from resomta-ch2-16v.sys.comcast.net ([69.252.207.112]) by resqmta-ch2-08v.sys.comcast.net with ESMTP id hoS8djaiiHvmhhoShdi4WS; Wed, 16 Aug 2017 02:53:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1502852019; bh=/VN1WbmUMn8aKMgGmL6jOOy9nbg42Kx6x8zvye3NyOE=; h=Received:Received:To:From:Reply-to:Subject:Date:Message-ID: Mime-Version:Content-Type; b=I2QyDpvdhugQWLb9PLu7FwkefNXqqOTcuQCm6R5n8CJdGikMyC68kxt2D3ZJCgZrW KVd92Tg5X65l7ZzGfYquNG1r98EjKi0299sqMgkdX7EVMUV6309FK/hIV+hdtjkhj3 TaGZkKp4Catd3/yp+a3u68W2H6A38sTOxDPQoZJWzgyi0BVB0rC3oLiT2sJ2kCMSZ4 dPTh7lmdoKYG+y2eL3gRLSn5rOrnHgNY1+FQf+O+5CDwuAyoDwDv8yyhSSPCyNfTKr 5tsoOtrIjJZonzgmZEzviKfcmhInqBWfk9NbvNIe3hueG6TbMtAuircFz129aFOZzc 9ySZ7J79Qa0Rg== Received: from unknown ([IPv6:2601:408:c301:784d:21e:4fff:fec2:a0f1]) by resomta-ch2-16v.sys.comcast.net with SMTP id hoSgdoVc8eaimhoShdy1Tc; Wed, 16 Aug 2017 02:53:39 +0000 To: Edbrowse-dev@lists.the-brannons.com From: Karl Dahlke Reply-to: Karl Dahlke References: User-Agent: edbrowse/3.7.0+ Date: Tue, 15 Aug 2017 22:53:38 -0400 Message-ID: <20170715225338.eklhad@comcast.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=nextpart-eb-276917 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfGL8gloW6T9n0jsFOl31LkVeSip257SzXS5zXg6+twwUlabrIBtmF2sGYN93tVMHYAM4wGkijvgIY+4AWoy0u23Pn3g9ebuXhL2RpdNHhwErLcNU453j 4+x6cItO0tI7xMcMpNlVebyXjK1fU1IkSYYLR4Z3p9WKoF82XTUCTQ1l Subject: [Edbrowse-dev] script in tree of document.written elements? 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: Wed, 16 Aug 2017 02:53:32 -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-276917 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable It was not at all clear to me, is not at all clear to me, where to put = the objects that result from document.write. innerHTML is obvious, document.write isnot. I thought they should parse under the script that does the = document.write, that is reasonable, rational, but not based on any spec = or anything. If the document.write is from an onload or onclick function, not an = obvious script, then I put the objects in a nowhere place wherein they still get = rendered so you see them in the buffer but aren't part of the js tree = at all. That can't be right. See html.c line 559. The short answer is, I could probably put them just about anywhere. They could all go under document.body if that is where they're suppose = to go. Or document. You'll have to review the test and infer where they belong. Karl Dahlke --nextpart-eb-276917-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (mailfrom) identity=mailfrom; client-ip=8.23.224.63; 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.63]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 6E79D77C83 for ; Tue, 15 Aug 2017 20:29:25 -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 EDB6D807; Tue, 15 Aug 2017 20:29:32 -0700 (PDT) Received: from carhart.net (localhost [127.0.0.1]) by carhart.net (8.13.8/8.13.8) with ESMTP id v7G3TULq017625; Tue, 15 Aug 2017 20:29:30 -0700 Received: from localhost (kevin@localhost) by carhart.net (8.13.8/8.13.8/Submit) with ESMTP id v7G3TO31017602; Tue, 15 Aug 2017 20:29:29 -0700 Date: Tue, 15 Aug 2017 20:29:24 -0700 (PDT) From: Kevin Carhart To: Karl Dahlke cc: Edbrowse-dev@lists.the-brannons.com In-Reply-To: <20170715225338.eklhad@comcast.net> Message-ID: References: <20170715225338.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] script in tree of document.written elements? 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: Wed, 16 Aug 2017 03:29:25 -0000 On Tue, 15 Aug 2017, Karl Dahlke wrote: > It was not at all clear to me, is not at all clear to me, where to put the objects that result from document.write. > innerHTML is obvious, document.write isnot. Thank you for wrangling it in the first place. I think it's semi-deprecated or Considered Harmful. There are various articles frowning on it. So it's one of those annoying constructs that shouldn't be used, but here it is in the tests itself. Okay. I just opened hello.html in firefox and firebug. It puts the P immediately after the script. The P has parentNode body.