Skip to main content
0 votes
1 answer
91 views

My app is fully done with ReactJs and there are no DOM manipulations outside React. Will ReactJs app benefit in any way if I will include dom4 polyfill? https://github.com/WebReflection/dom4
Lukas Liesis's user avatar
  • 26.6k
1 vote
1 answer
1k views

I trying to observe a group of elements. Quantity of elements can be various : from 1 to 10. $observedElements = document.querySelectorAll('em.price'); // in that time length will be 3. // $...
sameuser's user avatar
0 votes
1 answer
150 views

I want to create xpath which must contain word "Asia" //div[@id='destination-loadLevel0']/div/ul/li/div/div/span *for Asia //div[@id='destination-loadLevel0']/div/ul/li[2]/div/div/span *for ...
Jag's user avatar
  • 22
1 vote
1 answer
1k views

How to cloneNode and then convert that nodeName, cuz I want the attributes copied and children deeply (https://developer.mozilla.org/en-US/docs/Web/API/Node.cloneNode?redirectlocale=en-US&...
Noitidart's user avatar
  • 37.6k
2 votes
3 answers
2k views

I have a web application in PHP which in the frontend requires some more modern browser features like the MutationObserver. As stated on the site only very new browsers support this feature. The same ...
Stefan's user avatar
  • 337
0 votes
1 answer
1k views

I am using DOMSubtreeModified to get all DOM changes in a div. var stoppedTyping=""; $(".jqte_editor").on("DOMSubtreeModified", function(e) { if (stoppedTyping) clearTimeout(stoppedTyping); ...
Abhishek's user avatar
  • 2,029
0 votes
1 answer
358 views

If I have a single callback function and two MutationObservers for two different dom nodes, is there a way to tell which observer triggered the callback when it is called? The work the callback needs ...
Ralf Haring's user avatar
  • 1,254
20 votes
1 answer
4k views

Can the Shadow DOM W3C draft be polyfilled in JavaScript by providing custom functions for searching and traversing the DOM? Has this been done? The attempts I've found have been rather meek shims and ...
Patricia Brothers's user avatar
53 votes
2 answers
12k views

I know that MutationObservers callbacks may get called sometime after the DOM change. But the question is: What is the timing of these callbacks? Do the callbacks enter the event queue of the browsers?...
FelisCatus's user avatar
  • 5,434
41 votes
3 answers
39k views

I am trying to make a function go off when a particular div is created. In the simplest of terms, I have something like this: <a href="" id="foo">Click me!</a> <script> $("#foo")....
Jimmy Ha's user avatar
  • 509
7 votes
1 answer
5k views

"Warning: In DOM Core 1, 2 and 3, Attr inherited from Node. This is no longer the case in DOM4. In order to bring the implementation of Attr up to specification, work is underway to change it to no ...
baptx's user avatar
  • 4,006
5 votes
5 answers
3k views

while (div.hasChildNodes()) { fragment.appendChild(div.firstChild) } while (div.firstChild) { fragment.appendChild(div.firstChild) } Comparing the two pieces of pseudo code above, they both ...
Raynos's user avatar
  • 170k
1 vote
2 answers
2k views

http://jsfiddle.net/wDddR/3/ var input = document.createElement("input"); input.onclick = function (ev) { console.log(ev.timeStamp === 0 ? "WHY IS IT ZERO" : "It's not broken"); }; input.click() ...
Raynos's user avatar
  • 170k
13 votes
2 answers
2k views

Event.timeStamp The timeStamp attribute must return the value it was initialized to. When an event is created the attribute must be initialized to the number of milliseconds that has passed since 00:...
Raynos's user avatar
  • 170k
6 votes
3 answers
1k views

Introduction DOMError is an interface defined by the DOM. I would like to check whether a browser supports it. A naive check is window.DOMError !== undefined A better check would be to use an ...
Raynos's user avatar
  • 170k

15 30 50 per page