W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2008

[whatwg] getElementsByClassName() feedback

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 27 Nov 2008 23:40:20 +0100
Message-ID: <op.ulauliny64w2qv@annevk-t60.oslo.opera.com>
On Thu, 27 Nov 2008 22:38:32 +0100, Garrett Smith <dhtmlkitchen at gmail.com>  
wrote:
> It is often desirable to capture events on bubble and interrogate the
> EventTarget using a hasClassName function to see if it has a className
> that the program is concerned with.
>
> [...]

HTML5 already has the functionality you request in form of the classList  
DOM attribute on HTML elements.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Thursday, 27 November 2008 14:40:20 UTC

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