- From: Øyvind Stenhaug <oyvinds@opera.com>
- Date: Wed, 23 Sep 2009 19:38:45 +0200
- To: www-style <www-style@w3.org>
On Tue, 22 Sep 2009 18:27:42 +0200, Garrett Smith <dhtmlkitchen@gmail.com> wrote: > * document.defaultView.getComputedStyle > * Too verbose. The defaultView is unrelated to the Element (the DOM > spec says: "a computed style is related to an Element node"). Isn't this somewhat circular, since document is found in AbstractView? Or are there any browsers that need document.defaultView.getComputedStyle instead of just getComputedStyle? > A corresponding method to set a value would not seem to be necessary, > as any value could be set with: > > x.style.color = "papayawhip"; Well, not if there's an !important color declaration somewhere that affects x. -- Øyvind Stenhaug Core Norway, Opera Software ASA
Received on Wednesday, 23 September 2009 17:39:37 UTC