From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (mailfrom) identity=mailfrom; client-ip=8.23.224.61; 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.61]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 8E6E8779AA for ; Wed, 22 Nov 2017 13:34:49 -0800 (PST) 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 C81DD5EF for ; Wed, 22 Nov 2017 13:36:14 -0800 (PST) Received: from carhart.net (localhost [127.0.0.1]) by carhart.net (8.13.8/8.13.8) with ESMTP id vAMLaDPq006018 for ; Wed, 22 Nov 2017 13:36:13 -0800 Received: from localhost (kevin@localhost) by carhart.net (8.13.8/8.13.8/Submit) with ESMTP id vAMLaDgC006015 for ; Wed, 22 Nov 2017 13:36:13 -0800 Date: Wed, 22 Nov 2017 13:36:13 -0800 (PST) From: Kevin Carhart To: Edbrowse-dev@lists.the-brannons.com In-Reply-To: <20171022104855.eklhad@comcast.net> Message-ID: References: <20171016072958.eklhad@comcast.net> <20171022104855.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] data-* attributes 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, 22 Nov 2017 21:34:49 -0000 Thanks Karl , oh yeah, I got part of my investigation right but I misunderstood the meaning and functional importance of those hashes. Interesting, huh? So the site is saying, this onclick is spliced into the middle. The code that the handler runs simply records where they came from (for who knows why - for some reason like tracking the relative popularity of site sections as part of SEO), and then it is expecting to hand back control to regular hyperlinks to go to the new destination. On Wed, 22 Nov 2017, Karl Dahlke wrote: >> Karl, you asked about the site oranges.com and said links aren't working >> There is something going on with the attribute data-source, > > Yes, you're right, this is a problem that we must fix. I'll write more on that later. > Oddly enough, that's not why the link doesn't work. > I can set the attribute as it should be via jdb, and still the link doesn't work. > The onclick function returns nothing, and it should return true or false. > I interpret nothing as false, and the hyperlink does not run. > This is a real world website, so I guess I should interpret undefined as true, and move forward with the link. > Similar comments apply for submitting a form etc. > My last push makes this minor yet important change. > It's possible that a lot of links on a lot of websites will start working. > Here are the comments that I added to the source. > > /********************************************************************* > run_function_bool() > This function is typically used for handlers: onclick, onchange, onsubmit, onload, etc. > The return value is sometimes significant. > If a hyperlink has an onclick function, and said function returns false, > the hyperlink is not followed. > If onsubmit returns false the form does not submit. > And yet this opens a can of worms. Here is my default behavior for corner cases. > I generally want the browser to continue, unless the function > explicitly says false, or fails. > the function doesn't exist. (false) > The function encounters an error during execution. (false) > The function returns a bogus type like object, or a string like foo > that is not true or false. (true) > The function returns undefined. (true) > *********************************************************************/ > > Karl Dahlke > _______________________________________________ > Edbrowse-dev mailing list > Edbrowse-dev@lists.the-brannons.com > http://lists.the-brannons.com/mailman/listinfo/edbrowse-dev > -------- Kevin Carhart * 415 225 5306 * The Ten Ninety Nihilists