From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out.smtp-auth.no-ip.com (smtp-auth.no-ip.com [8.23.224.60]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 49EE27789A for ; Sun, 8 Sep 2019 16:23:27 -0700 (PDT) X-No-IP: carhart.net@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from phoenix.carhart.net (unknown [99.57.137.251]) (Authenticated sender: carhart.net@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 4F39D609 for ; Sun, 8 Sep 2019 16:23:25 -0700 (PDT) Received: from phoenix.carhart.net (carhart.net [127.0.0.1]) by phoenix.carhart.net (8.15.2/8.15.2) with ESMTP id x88NNOT9083918 for ; Sun, 8 Sep 2019 16:23:24 -0700 Received: from localhost (kevin@localhost) by phoenix.carhart.net (8.15.2/8.15.2/Submit) with ESMTP id x88NNOYB083915 for ; Sun, 8 Sep 2019 16:23:24 -0700 X-Authentication-Warning: phoenix.carhart.net: kevin owned process doing -bs Date: Sun, 8 Sep 2019 16:23:24 -0700 (PDT) From: Kevin Carhart X-X-Sender: kevin@phoenix To: Edbrowse-dev@lists.the-brannons.com Subject: [edbrowse-dev] GCS and never-referenced style props Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) X-BeenThere: edbrowse-dev@edbrowse.org List-Id: Edbrowse Development List MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII Thanks Karl for mentioning dberr. This helped with a problem in ontimer code that was hard to locate. Thanks to dberr, I got a real line number and went right to the error. Now that I know what I'm trying to work on, I'd like to run a resolution past you. Here's the situation. Assume the string Hr = 'transition'; The code that raises an error is, and the error is that it's illegal to call split on not a valid string. var a = window.getComputedStyle(e), s = a[Hr + 'Delay'].split(', ') I'm assuming these two statements are related because the second statement is called on a, the return value of the first. So I read this to say that after gcs is called, the program assumes it can have free reign to reference transitionDelay and other properties and assume they are strings. I checked in Firefox, and an object returned from gcs has about 500 different style properties with the default value "", including: transition: "" transitionDelay: "" transitionDuration: "" transitionProperty: "" transitionTimingFunction: "" Karl, is there a best place to set this up, such as in createElement or getComputedStyle? And do you think I should set up hundreds, or just set up the ones I know are referenced and do more when a program tries to find them? The latter would mean that we should bear in mind that this can be a major reason for runtime errors-- maybe it's better to set up the whole A-Z slate now. thanks Kevin