W3C home > Mailing lists > Public > public-html@w3.org > May 2013

Re: [new Feature] QueryEventListeners

From: Michaël Rouges <michael.rouges@gmail.com>
Date: Sun, 26 May 2013 23:21:28 +0200
Message-ID: <CAMNVKQHsNTmQx1g-d2vvJ4sOK7DMjdqasQr0dU=JEcwM2Csx0g@mail.gmail.com>
To: public-html@w3.org
Hi Robin,

Thank you for this advice and I agree with you on the fact of having to do more
to support an example of this kind.

In fact, my example was a bit simplistic. However, with a more complex
selector, the QueryEventListeners would prove almost necessary for light

Imagine, for example, that we want to apply an event to any element

document.querySelector('section:nth-of-type(3n+0) p[data-sample="sample"

Should miles of code and it would be very expensive in ressources, to
manage it.

Also, my original example shows a user event (onclick) but it could very
well imagine that the event is simply inserting a node matching the selector
, so, for example, putting in color, supplement content, etc..

Received on Sunday, 26 May 2013 21:21:56 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:46:02 UTC