OSDN Git Service

Version 0.6.124, remove xnode._root.
[pettanr/clientJs.git] / 0.6.x / js / 01_core / 16_XViewPort.js
index 5627a85..a290fea 100644 (file)
@@ -287,12 +287,12 @@ X.ViewPort = {
                        X_ViewPort_rootElement = document.compatMode !== 'CSS1Compat' ? elmBody : elmHtml || elmBody;
 
                        html = X.Doc.html = X_Node_html = elmHtml && new Node( elmHtml );
-               
+                       html._flags |= X_Node_State.IN_TREE;
+                       
                        head = X.Doc.head = X_Node_head = elmHead && new Node( elmHead );
                
                        body = X.Doc.body = X_Node_body = new Node( elmBody );
-                       
-                       body._root   = html._root = head._root = body;// _root は html だろ
+
                        body.parent  = head.parent = html;
                        html._xnodes = [ head, body ];