peterpeterparker/stylo

Replace custom filterAttributesMutations with MutationObserver attributeFilter

Closed this issue · 1 comments

Feature Description

I can most probably replace the custom paragraph.utils.ts function filterAttributesMutations with the native MutationObserver option attributeFilter that filter the attributes that should not be observed.

MDN Doc

Use Case

Use the platform Luke.

Having a look at my comment (// We consider only single change....), rather like to stick with existing code to not break anything