From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-x231.google.com (mail-wg0-x231.google.com [IPv6:2a00:1450:400c:c00::231]) by hurricane.the-brannons.com (Postfix) with ESMTPS id DDEB277E2B for ; Tue, 22 Apr 2014 07:18:09 -0700 (PDT) Received: by mail-wg0-f49.google.com with SMTP id a1so3927617wgh.8 for ; Tue, 22 Apr 2014 07:17:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=rSDnTEu9uX5xCw7EQl/R/5Ozdi171IkWBDHGG0t/Eoo=; b=NXwWFiCoxQVa7bFUpcfpjwWVQMnBLqr2CsPe4T4CFCuCPD9fxZI6fAxJ7/knK5uw1p MA25denlr+zfnuvu3eiEYNK8PUsiSqp9hBnhUqfl6ARasvZpmsDuzys1aRD1fi9aOiUe OxuKIjkXowDe37ga+NbYw7XKy5TQskoD67iFMD+rPqZESLhArnMYsu7WPXbv4JtnYPwK a63bUkDVAVlqtlwFkjdBSRS1nKfdiOg94dVKM+vOk+FLVbbXcJax0Y5jGULkfi6dGbWJ wR2GYyzmFfJ3vAQaDSlKwySMjPRdXQpKzZsAJL8hfNYDbABO7zj9I8DYZ6Ew/gwjv7xz qBaA== X-Received: by 10.194.205.35 with SMTP id ld3mr2142523wjc.82.1398176268480; Tue, 22 Apr 2014 07:17:48 -0700 (PDT) Received: from toaster.adamthompson.me.uk (toaster.adamthompson.me.uk. [2001:8b0:1142:9042::2]) by mx.google.com with ESMTPSA id eu7sm22882677wib.18.2014.04.22.07.17.46 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 22 Apr 2014 07:17:47 -0700 (PDT) Date: Tue, 22 Apr 2014 15:17:44 +0100 From: Adam Thompson To: Karl Dahlke Message-ID: <20140422141744.GD23557@toaster.adamthompson.me.uk> References: <20140321085354.eklhad@comcast.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lteA1dqeVaWQ9QQl" Content-Disposition: inline In-Reply-To: <20140321085354.eklhad@comcast.net> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: Edbrowse-dev@lists.the-brannons.com Subject: Re: [Edbrowse-dev] Amazon can of worms X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.17 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Apr 2014 14:18:10 -0000 --lteA1dqeVaWQ9QQl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 21, 2014 at 08:53:54AM +0000, Karl Dahlke wrote: > Adam writes: > > I think in this case it is expected that the script element is placed (= and thus > > executed) in the DOM just as it would be if it was done in the html. >=20 > Perhaps, but in this case, Amazon.com, the script element is added > to the head section, which is about 1000 lines in the past. > It is not placed in some tag in the future. > Since we don't have time travle, > the best we can do is to execute the script right now. > I guess, it's all rather merky. Yeah, that's seriously weird. I fail to see how this is expected to work, since even if the DOM is created first then script elements executed in the order they appear, the addition of an extra script element in the head sect= ion after that part of the DOM has had all its script elements executed would b= e a bit pointless. The only way this could possibly work without invoking the script out of pl= ace would be to re-check the DOM on each update executing new script elements. This just sounds like a bit of a recipe for disaster. Before doing anything with this I'd be tempted to look at how other browsers handle this case, assuming it's not just a bug in amazon's page which no one has noticed yet. Cheers, Adam. --lteA1dqeVaWQ9QQl Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJTVnoIAAoJELZ22lNQBzHOntEH/3dLvMWtXwa4U7NLmrSntn/P CYjIa8ZcMzhvBrjAshHR41ulEFJsSwMkkSSuji7B2CuJ61uBoZpwah31SwXwy9C5 X6hX7D1ygM+he8QdI9J12/LkVq5v9DRDaszGpFT61xgzxVPQzDdGaWpWAjaamIXQ RYqG04xmH+5bSliGqYY9EFrc3ThfrVn/o2hH+iopbmDJ6/fasIxHITQPBwGYsOPg OGICcAAthdF9Ktp0p8iqNmBVycvciDNYwkpDB7ApKq8UBA6T/0Hm8n4TLeQefJRc OcbjeZ5HJskWGZowSeai4wXJ8F+EjboyYyDx2Wu3VbwYWCo6Hi3PLHib9w3K3uc= =zLPo -----END PGP SIGNATURE----- --lteA1dqeVaWQ9QQl--