W3C home > Mailing lists > Public > www-style@w3.org > August 2013

[cssom] Methods instead of attributes for usedStyle et al

From: Simon Pieters <simonp@opera.com>
Date: Tue, 13 Aug 2013 16:49:41 +0200
To: "www-style@w3.org" <www-style@w3.org>
Message-ID: <op.w1rfg3uhidj3kv@simons-macbook-pro.local>

While trying to use WebIDL's new [SameObject] and [NewObject] extended  
attributes where applicable in CSSOM [1], I noticed that the GetStyleUtils  
members return new objects each time but doing so is discouraged for  
attributes [2]. I don't think it makes sense for these to return the same  
object each time since that would mean having to keep the object live  
which is probably quite expensive.

So I propose that these members be changed to members instead, as follows


If anyone prefers different names as methods, let's hear it.

[1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=22885
[2] https://www.w3.org/Bugs/Public/show_bug.cgi?id=22939

Simon Pieters
Opera Software
Received on Tuesday, 13 August 2013 14:44:46 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:13 UTC