W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2008

DocumentCSS vs ViewCSS

From: Joćo Eiras <joao.eiras@gmail.com>
Date: Mon, 31 Mar 2008 01:59:35 +0100
To: "www-dom@w3.org" <www-dom@w3.org>
Message-ID: <op.t8uvpl1njz3wb9@foobar.wag54gs>


Hi!

Why does DOM 2 StyleSheets defines two new interfaces (DocumentCSS,  
ViewCSS), which only difference is the only method they expose while  
having equal signatures?
Should getOverrideStyle have some sepecific binding or validation with the  
Document which implements DocumentCSS?
IMO, it would be fairly enough to add it to ViewCSS, and in the ecmascript  
binding, it would spare developers of have to contantly type document.foo  
all day long.

But then, we already have an interface implemented by Document, which is  
DocumentStyle. So DocumentCSS should either be merged with ViewCSS, of  
with DocumentStyle. I prefer the former.
All these interfaces bloat the spec.

What do you think ?

Thank you.
Received on Monday, 31 March 2008 01:00:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:59 GMT