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

Ian Hickson ian at hixie.ch
Mon Jun 15 12:26:25 PDT 2009


On Mon, 15 Jun 2009, Adam Roben wrote:
>
> 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.

Done.


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

It didn't seem especially useful to make one inherit from the other, so I 
haven't done that. Not sure what other relationship would help.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'


More information about the whatwg mailing list