From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (mailfrom) identity=mailfrom; client-ip=8.23.224.60; helo=out.smtp-auth.no-ip.com; envelope-from=kevin@carhart.net; receiver= Received: from out.smtp-auth.no-ip.com (out.smtp-auth.no-ip.com [8.23.224.60]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 9954877DE5 for ; Mon, 14 Aug 2017 20:05:41 -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 6237929D; Mon, 14 Aug 2017 20:05:47 -0700 (PDT) Received: from carhart.net (localhost [127.0.0.1]) by carhart.net (8.13.8/8.13.8) with ESMTP id v7F35jm1014834; Mon, 14 Aug 2017 20:05:46 -0700 Received: from localhost (kevin@localhost) by carhart.net (8.13.8/8.13.8/Submit) with ESMTP id v7F35jqP014830; Mon, 14 Aug 2017 20:05:45 -0700 Date: Mon, 14 Aug 2017 20:05:45 -0700 (PDT) From: Kevin Carhart To: Karl Dahlke cc: Edbrowse-dev@lists.the-brannons.com In-Reply-To: <20170714212607.eklhad@comcast.net> Message-ID: References: <20170713214236.kevin@carhart.net > <20170714212607.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] defaultView and getComputedStyle patch 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: Tue, 15 Aug 2017 03:05:41 -0000 If I understand correctly, I think you can't have too much dynamism or dynamicness. Does CSSStyleDeclaration get you something that style does not? Maybe so, if we write it that way. Does CSSStyleDeclaration hinder you from something that style gives you? I don't think so. Are there any drawbacks? On Mon, 14 Aug 2017, Karl Dahlke wrote: > So CSSStyleDeclaration is a class that spins off objects. > Is it possible that every one of our style objects, that we create under nodes, should be an instance of CSSStyleDeclaration, rather than Object? > So under an anchor tag, or I should say the anchor object, we create style as an instance of CSSStyleDeclaration, > then link element back to the anchor object so we know where it came from. > anchorObj.style.element = anchorObj; > And I don't know about style, maybe that links to itself. > style.style = style; > Then your getComputedStyle(e) can indeed return e.style and everything works. > I don't know if this is how it's suppose to work, but I bet it would pass all the tests. > > Karl Dahlke > -------- Kevin Carhart * 415 225 5306 * The Ten Ninety Nihilists