W3C home > Mailing lists > Public > public-webapi@w3.org > March 2008

[selectors-api] Why have two identical differently named interfaces?

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 11 Mar 2008 22:08:30 -0500
Message-ID: <47D7492E.7060603@mit.edu>
To: Web APIs WG <public-webapi@w3.org>

Is there a reason to have identical interfaces called DocumentSelector 
and ElementSelector that are identical?  Would it not make sense to just 
define a NodeSelector or something and require Document and Element 
nodes to implement it?  The confromance requirement could be easily 
stated in terms of descendants of the Node in question in a way that 
would work for both Document and Element nodes...

Received on Wednesday, 12 March 2008 03:08:56 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:25 UTC