Bug 18941 - Would be great if "nodes are inserted" was invoked once for each node
Would be great if "nodes are inserted" was invoked once for each node
Status: RESOLVED FIXED
Product: WebAppsWG
Classification: Unclassified
Component: DOM
unspecified
PC All
: P2 normal
: ---
Assigned To: Anne
public-webapps-bugzilla
:
Depends on:
Blocks: 17880
  Show dependency treegraph
 
Reported: 2012-09-20 19:56 UTC by Ian 'Hixie' Hickson
Modified: 2012-09-21 09:52 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian 'Hixie' Hickson 2012-09-20 19:56:09 UTC
It would make my life easier in the HTML spec if there was a hook that fired for each node that is inserted when a whole subtree or doc fragment is inserted, in a defined order. Currently there's just a "nodes are inserted" hook which is a bit vague about which nodes and so forth.

(FYI I plan to execute script on this hook.)
Comment 1 Anne 2012-09-21 09:52:42 UTC
Since I added this for the script stuff it's no problem to make it work in a way that's easier for you :-)

https://github.com/whatwg/dom/commit/68206e30041ddb3d3e0b1d79617773b87b855159
http://dom.spec.whatwg.org/#node-is-inserted