Skip to content

Commit

Permalink
* MutationSet.consolidate - added xo-silent attribute logic
Browse files Browse the repository at this point in the history
  • Loading branch information
uriel-online committed Feb 2, 2024
1 parent db4e211 commit cd9868d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xo.js
Original file line number Diff line number Diff line change
Expand Up @@ -4071,6 +4071,7 @@ class MutationSet extends Array {
for (let mutation of mutationList) {
let inserted_ids = [];
let target = mutation.target instanceof Text && mutation.target.parentNode || mutation.target;
if (['', 'true'].includes((target.closest('[xo-silent]') || document.createElement('p')).getAttribute("xo-silent"))) continue;
let value = mutated_targets.get(target) || {};
if (mutation.target instanceof Text) {
value.texts = value.texts || new Map();
Expand Down

0 comments on commit cd9868d

Please sign in to comment.