Questions tagged [dom3]

dom3 (Document Object Model Core Level 3), a platform- and language-neutral interface that allows programs and scripts to dynamically access and update the content, structure and style of documents.

Description

DOM3 defines the event and document model the Web platform uses. The DOM is a language- and platform neutral interface that allows programs and scripts to dynamically access and update the content and structure of documents.

Specifications

  1. DOM Level 3 Core
  2. DOM Level 3 Load and Save
  3. DOM Level 3 Validation
  4. DOM Level 3 Events
  5. DOM Level 3 XPath
10 questions
59
votes
2 answers

Why is the DOMSubtreeModified event deprecated in DOM level 3?

Why is the DOMSubtreeModified event deprecated and what are we supposed to use instead?
huyz
  • 2,297
  • 3
  • 25
  • 34
32
votes
2 answers

DOM Level 3 XPath in Internet Explorer

I just installed IE10 on my Windows 7, and I've noticed that, even if I'm glad that XMLs from AJAX requests are now compatible DOM documents, a rather basic function like document.evaluate is still not supported. What's worse is that, since those…
MaxArt
  • 22,200
  • 10
  • 82
  • 81
21
votes
4 answers

DOM mutation events replacement

Since DOM mutation is marked as deprecated by the w3c (see http://www.w3.org/TR/DOM-Level-3-Events/#events-mutationevents), is there an (fast) alternative way to detect attribute modification in the DOM ?
Franck Freiburger
  • 26,310
  • 20
  • 70
  • 95
6
votes
1 answer

DOMNodeInserted/Removed event polyfills (or similar events)

I need a way to listen for changes for when a node's children are removed or added. I made an autoscrolling plugin that keeps an element scrolled to the bottom as new items are added. The event I'm listening to is DOMNodeInserted and…
megawac
  • 10,953
  • 5
  • 40
  • 61
3
votes
1 answer

What happened to the event groups chapter of DOM level 3 specification?

In the 2006 version of DOM events level 3 specification there is a chapter "Event groups", but in the current version there is none. What happened to this chapter? Was it intentionally removed? It would be very helpful to have (partially) ordered…
calavera.info
  • 1,170
  • 2
  • 15
  • 30
2
votes
3 answers

Implementation of a DOM listener

I was thinking there was no DOM listener so I implemented my own 'heavy' listener: function CvHelper(stackApi) { var that = this; // check if room is finished loading this.init = function() { if ($('#loading').length) { …
PeeHaa
  • 71,436
  • 58
  • 190
  • 262
2
votes
3 answers

Replacement for DOM3 getUserData/setUserData methods

So we've got some old-school Firefox extension code that uses the DOM3 methods get/setUserData() to pass around data in the DOM. Unfortunately, these have been deprecated in DOM4, so Firefox is planning to drop support for them, and Chrome never…
lambshaanxy
  • 22,552
  • 10
  • 68
  • 92
1
vote
1 answer

What are some practical examples of MutationObserver use?

The most confusing thing in this API is for me the reason why use it. I know ReactJS and RxJS and I'm used to the concept when view reacts to data change. So watching changes to DOM, which happens definitely after some mutations to data, I can't see…
Zydnar
  • 1,472
  • 18
  • 27
0
votes
2 answers

Is there any way of setting the buttons attribute of MouseEvent in Mozilla?

I'm used to simulating mouse clicks in Javascript like so: var evt = document.createEvent("MouseEvents"); evt.initMouseEvent("click", true, true, document.view, 1, 1492, 398, 1308, 274, false, false, false, false, 0, null); var element =…
Andy Post
  • 33
  • 6
0
votes
3 answers

Disable backspace with DOM Level 3 Listeners

I am making a page in which a user must be able to type. The default function of backspace is to go back a page, however I need to prevent this and assign my own function to it. The problem is actually preventing backspace. I can capture it however…
Shane
  • 2,007
  • 18
  • 33