This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 18941 - Would be great if "nodes are inserted" was invoked once for each node
Summary: Would be great if "nodes are inserted" was invoked once for each node
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: DOM (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Anne
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
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

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