Bug 16373 - replacing a child creates extra mutationrecord
replacing a child creates extra mutationrecord
Status: RESOLVED FIXED
Product: WebAppsWG
Classification: Unclassified
Component: DOM
unspecified
PC Linux
: P2 normal
: ---
Assigned To: Anne
public-webapps-bugzilla
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-14 16:39 UTC by Olli Pettay
Modified: 2012-03-20 17:32 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 Olli Pettay 2012-03-14 16:39:41 UTC
Replacing a child should create just one record, which has
the old child in the removedNodes, and new node in the addedNodes.
Currently the spec creates separate records.
Comment 1 Olli Pettay 2012-03-20 12:35:41 UTC
This can't be done in general
Comment 2 Olli Pettay 2012-03-20 12:37:14 UTC
Or maybe I'm wrong :)
Comment 3 Anne 2012-03-20 14:30:29 UTC
I think I fixed this. Review welcome.
Comment 5 Adam Klein 2012-03-20 16:30:46 UTC
Looks good to me, thanks! Just one nit: step 12 of "replace" says "Insert ... with the suppress observers flag." instead of "...with the suppress observers flag set." Seems like that should be consistent throughout this section.