Skip to content

Observer: detect and monitor newly-attached shadowroots #10

@mkazin

Description

@mkazin

Version 0.0.3 introduces partial ShadowRoot support:

  • Currently any ShadowRoot already existing will be monitored by the function via nested mutationObserver.
  • But attaching a ShadowRoot after the mutationObserver was created is not properly detected and handled.

A test case exists for this but is set to be skipped at the moment. Make sure to use and if necessary fix it.

Code that I thought should work is in place, but the unit test and manual testing indicate it's not quite right. And I'm still confused about how for some reason it looked like a mutation's removedNodes is the key.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions