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 20C0D77DCD for ; Wed, 11 Oct 2017 10:52:02 -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 2EF29729 for ; Wed, 11 Oct 2017 10:54:15 -0700 (PDT) Received: from carhart.net (localhost [127.0.0.1]) by carhart.net (8.13.8/8.13.8) with ESMTP id v985Gu7R031701 for ; Sat, 7 Oct 2017 22:16:56 -0700 Received: from localhost (kevin@localhost) by carhart.net (8.13.8/8.13.8/Submit) with ESMTP id v985GtuG031694 for ; Sat, 7 Oct 2017 22:16:56 -0700 Date: Sat, 7 Oct 2017 22:16:55 -0700 (PDT) From: Kevin Carhart To: edbrowse-dev@lists.the-brannons.com Message-ID: User-Agent: Alpine 2.03 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Subject: [Edbrowse-dev] hyphenated event type names 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, 11 Oct 2017 17:52:02 -0000 I think I may have hit on a good one. It began because some page code wants to address an event handler on an event called 'invalid-form'. I think this currently doesn't work because the eval() that we have in our our add event handler code uses the 'dot' style for property referencing. The evaluation of a string like blah.invalid-form raises an error. But I think we can get these to work by changing it to bracket style, like this: eval( 'this[\'' + ev + '\'] = function(){ var a = this[\'' + evarray + '\']; if(this[\'' + evorig + '\']) this[\'' + evorig + '\'](); for(var i = 0; i