Last modified: 2014-11-18 19:58:59 UTC
We explicitly call buildNodeTree() in a few places. Ideally, we would not need to do this outside of ve.dm.Document. Suspect calls (excluding dm.Document, excluding tests): lib/ve/src/ce/ve.ce.Surface.js 1000: doc.buildNodeTree(); 1711: doc.buildNodeTree();
The node tree is lazily evaluated by buildNodeTree the first time you call getDocumentNode. In the examples your provide (paste and drag-drop) we call buildNodeTree after sanitisation has occurred, as sanitisation happens on the data model array.