Bugzilla – Bug 13040
Define some sort of mutation listeners
Last modified: 2012-02-16 22:03:02 UTC
What is this about?
Defining that proposal in DOM Core, and the original mutation events if they cannot be removed from browsers.
Created attachment 1075 [details]
Proposed spec text for mutation observers
Here's the text I've put together so far (if you want to apply this locally, it's against changeset 934:334b4c11b92f).
Major thing missing is any discussion of delivery; it seems likely to me that'll have to go in another spec. But there's plenty of minor things missing too. For now, I'd mostly like to see if I'm going in the right direction (this is my first time working on a web spec).
Besides the overhaul of of #mutation-observers, interesting anchors to check out are:
MutationObserver-observe should become dom-MutationObserver-observe etc. We prefix IDL members with dom-. The same goes for dictionaries, i.e. dom-MutationObserverInit-*. I have not read it in detail, but it looks good.
Adam, can you provide an updated patch?
Created attachment 1080 [details]
Draft spec text updated with dom- prefixes
Updated with dom- prefixes. I suspect there are other style issues like that lurking in the patch as well. Note that this is still against changeset 934, so if things in mutation algorithms or attributes have changed since then this may not apply cleanly.
I checked this in, along with several smaller follow up commits by myself to clean up a few things. I will probably take another look at the new text tomorrow.
For significant issues I recommend people file new bugs.
Marking this fixed. Thanks Adam!