W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2009

[whatwg] Unifying DOMTokenList with DOM 3 Core's DOMStringList?

From: Adam Roben <aroben@apple.com>
Date: Mon, 15 Jun 2009 12:25:03 -0400
Message-ID: <E24BA103-56FE-453C-937C-59928EDC9F52@apple.com>
DOM 3 Core defines the DOMStringList interface [1], which has some  
similarities to HTML 5's DOMTokenList interface. In fact,  
DOMStringList basically provides a subset of DOMTokenList's  
functionality. But there is a mismatch in the names of the  
DOMTokenList.has and DOMTokenList.contains methods (which seem to have  
the same purpose).

I think DOMTokenList.has should be renamed to DOMTokenList.contains,  
to match DOMStringList.

Perhaps some relationship between these two interfaces should be  
defined as well (though that would obviously introduce a dependency on  
DOM 3 Core).

-Adam

[1] http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#DOMStringList
Received on Monday, 15 June 2009 09:25:03 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:13 UTC