68 questions
0 votes
0 answers
41 views
Fullcalendar Mutation Observer Failing to Detect Deletion of DOM Element
I am modifying the text of the "More" links created by Fullcalendar V6. When those links are clicked, Fullcalendar re-renders its own text into the element, which is behind the popover div ...
1 vote
1 answer
520 views
Mutating Nuxt Component
I've been trying to learn vuex for weeks now (I've seen dozens of tutorials and they only go over the counter example). I'm slow and still can't grasp how to do this. My idea is to be able to switch ...
0 votes
1 answer
737 views
MutationObserver to detect change in null child element
I have an iframe that is rendering content from another domain. Obviously I cannot access the contentDocument from the other domain (returns null). But when a user performs an action on the rendered ...
3 votes
0 answers
250 views
DOM event attributeModified/attributeRemoved/characterDataModified... are not triggered
After chrome.debugger.sendCommand({tabId:tabId}, "DOM.enable"), I found only event DOM.documentUpdated can be triggered, but others: DOM.attributeModified DOM.attributeRemoved ...
1 vote
0 answers
254 views
Trigger event when a css class appear
I've a problem coding an addons for firefox browser. The addons is supposed to make sound when a CSS class appear "error-class" or "warn-class". I use the mutation observer to check if my class appear ...
5 votes
1 answer
3k views
Mutation Observer does not detect nodes added through innerHTML, appendChild
When we try to add nested nodes in DOM using appendChild or innerHTML, the nested nodes do not come in the addedNodes of a mutation. Initial HTML setUp: <html> <body> <div ...
3 votes
1 answer
10k views
MutationObserver and querySelectorAll
I am currently learning Javascript and one of my chapters is "Mutation Observer". I am trying to create a simple function which detects if a new div was added to the page and display it in the console....
3 votes
1 answer
790 views
Does tree mirror js and mutation summary supports iframe?
I have been using an open source library called tree-mirror.js which uses mutation-summary.js to do the DOM mirroring. Everything is good but iframes. When the main document contains an iframe, the ...
9 votes
2 answers
8k views
How to change the HTML content as it's loading on the page
I do A/B Testing on our site and I do most of my work is in a JS file that is loaded at the top of the page before anything else is rendered but after jQuery has loaded which comes in handy at times. ...
9 votes
2 answers
3k views
Having a reference to an element, how to detect when it is appended to the document?
I am developing a JavaScript module, which knows nothing about the environment in which it will be used in. And, technically speaking, I want to implement the next function: onceAppended(element, ...
1 vote
1 answer
69 views
Is it possible to send javascript code to a user's browser securely?
Is it possible to send javascript code to a client, and have it send back information to a server, without the user being able to intercept it, see it, or alter it. As far as I know this is not ...
2 votes
2 answers
14k views
DOMNodeInserted and DOMNodeRemoved events
The code below is working fine, apart from the counter. When I add an item to the list, the counter is accurate, though when I remove an item from the list, it doesn't subtract one from the counter. ...
0 votes
1 answer
101 views
Changing element's HTML before it's inserted in the DOM
Is it possible to change an element's inner HTML before it is inserted in the DOM? I already tried doing this with MutationObserver but the problem is that you can see the element's HTML visually ...
0 votes
2 answers
2k views
How to delete mutation record objects in javascript
I'm observing changes on a Div element, that is being filled with child div's with ajax calls. My aim is to make some checks within the observed Record objects and filter some of them. How can i ...
16 votes
1 answer
12k views
Mutation Observer fails to detect element's dom removal
So, I thought this was going to be pretty straight forward, there used to be a DOMNodeRemoved event, but that's deprecated, instead, MutationObserver should be used, the thing is, it doesn't fire, ...