Skip to content

Implement mutation observers #1980

Closed
Closed

Activity

  1. Ms2ger commented on Nov 16, 2014

    @Ms2ger
    Contributor

    Blocks #2185.

    Note that this will require implementing microtasks (which I have little experience with).

    Tests: dom/nodes/MutationObserver-childList.html, dom/nodes/MutationObserver-attributes.html, dom/nodes/MutationObserver-document.html, dom/nodes/MutationObserver-characterData.html, dom/nodes/MutationObserver-disconnect.html, dom/nodes/MutationObserver-takeRecords.html and dom/nodes/MutationObserver-inner-outer.html (requires inner/outerHTML).

  2. added
    B-interesting-project
    on Nov 16, 2014
  3. jdm commented on Mar 17, 2015

    @jdm
    Member

    I propose a simple implementation where a mutation_observers vector is added to Node, and they get notified every time Node::insert, Node::replace_all, Node::remove, Element::do_set_attribute, and Element::remove_attribute are called. For subtree observers, this will require checking the ancestors of mutated nodes as well.

  4. pcwalton commented on Mar 23, 2015

    @pcwalton
    Contributor

    Now that we have userscripts, this should be the last missing piece blocking integration of canvg for SVG support.

  5. nox commented on Jun 12, 2015

    @nox
    Contributor

    @jdm Not only nodes will need the mutation observers machinery. I would like to use them between URLSearchParams and URL too, for example.

  6. jdm commented on Apr 28, 2017

    @jdm
    Member

    Closing in favour of #6633.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-content/domB-interesting-projectI-enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions