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:43; helo=resqmta-ch2-11v.sys.comcast.net; envelope-from=eklhad@comcast.net; receiver= Received: from resqmta-ch2-11v.sys.comcast.net (resqmta-ch2-11v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:43]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 7D41F779AA for ; Sat, 9 Dec 2017 22:46:21 -0800 (PST) Received: from resomta-ch2-04v.sys.comcast.net ([69.252.207.100]) by resqmta-ch2-11v.sys.comcast.net with ESMTP id NvPReKRJcxSfsNvPReTGJM; Sun, 10 Dec 2017 06:48:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1512888501; bh=t9253noRdiwja8f9q4KGwOPwiFvy/Y0PmYreZzLtEQ0=; h=Received:Received:To:From:Reply-to:Subject:Date:Message-ID: Mime-Version:Content-Type; b=FFzw+ZdtoZDEVBxieu0iRZYZ+uhJf1he98zPPCpp2k6TUN7d/cFCILsVRlL5o43z6 JNuct+YEf+RPWB5T5p7kpQ8UEEwb50+EC3Lt+dV5SK7FE4OwQkSuhMgLHGVznEzSTk fNsro32McZPmzPQ3eelVMQspX4NVq8Qh9hAS/Ke8kRtC7aGGAxNRLo0leN9aiw8+4E xMv8TfCnnq2uK9kYME8b8EiKCgXUgiRfU3CbQJaJZiaJO/v3JNxPasyfMR9WVuaw9J eMGZh6bK2slE21dEDoHgdvcV6QiN5Lq2MDrsHD1/5cxFwp9WgUs6lJ1EjMF+j1L2bx UOyz9PI4zof5A== Received: from unknown ([IPv6:2601:408:c300:8f09::282e]) by resomta-ch2-04v.sys.comcast.net with SMTP id NvPQelpK7nshJNvPReV8CM; Sun, 10 Dec 2017 06:48:21 +0000 To: edbrowse-dev@lists.the-brannons.com From: Karl Dahlke Reply-to: Karl Dahlke References: User-Agent: edbrowse/3.7.1 Date: Sun, 10 Dec 2017 01:48:20 -0500 Message-ID: <20171110014820.eklhad@comcast.net> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfKJF02AO4HUVAXektTYKyjMHHPTz1qRFu82p3KPm8Qrd3CMFDCoC1kVCl8SF196JPYqYAqO2eKLMdZLh6KmA8B7r4jIiNR5iD+BbzjUF/eXi7DbtOnf1 kIT9YxiHtslnH4TRiMI0YJDi6DTTzW7miQlZ2dS7hDBlSBHQrztk5EHJ Subject: [Edbrowse-dev] what is dispatchEvent and is it needed? 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: Sun, 10 Dec 2017 06:46:21 -0000 > dispatchEvent(button,"click") At first glance this seems silly, as one can call button.onclick() to run that function, this was part of javascript since day one, but dispatchEvent probably does something more, it probably bubbles up. So we would need to march up the tree via parentNode and call any onclick functions along the way. Rather like handlerGoBrowse in C, but a js version, which isn't hard at all. Karl Dahlke