W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2014

Re: Extending Mutation Observers to address use cases of

From: Joshua Peek <josh@joshpeek.com>
Date: Tue, 11 Feb 2014 22:41:08 -0600
Message-ID: <CA+RmjJJbKZUeFE5Zne04j1PGbobP9Ah2YZAJJ2uX+EB1CYsigA@mail.gmail.com>
To: Ryosuke Niwa <rniwa@apple.com>
Cc: "public-webapps@w3.org WG" <public-webapps@w3.org>, Erik Arvidsson <arv@google.com>, Anne van Kesteren <annevk@annevk.nl>, Jonas Sicking <jonas@sicking.cc>
Are you proposing new mutation record type? I think that could handle
most of the enter/leave requirements.

  observer.observe(target, { element: 'x-foo' });

If MutationObservers are an open topic for extension, I'd love to see
generic css selector support.

  observer.observe(target, { selector: 'foo' });
  observer.observe(target, { selector: '.foo' });

That'd cover element name "enter" and "leaves" as well.

On Tue, Feb 11, 2014 at 7:41 PM, Ryosuke Niwa <rniwa@apple.com> wrote:
> Hi,
> I’m bringing this up out of:
> [Custom]: enteredView and leftView callbacks are still confusing
> https://www.w3.org/Bugs/Public/show_bug.cgi?id=24314
> Could someone clarify exactly why mutation observers can’t satisfy use cases for custom elements?
> I strongly believe that we should extend mutation observers (e.g. add some flag to fire more eagerly) so that we could *explain* these callbacks in terms of mutation observers.
> - R. Niwa
Received on Wednesday, 12 February 2014 04:41:35 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:21 UTC