Show
Ignore:
Timestamp:
10/10/08 15:26:28 (3 months ago)
Author:
mattn
Message:

- createElement does not append child.
- emem's parentNode() is undefined. thus, parentNode().parentNode() will be error.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/cplusplus/llv8call/trunk/ext/libxml/document.cc

    r21069 r21077  
    105105    xmlNodePtr node_raw = xmlNewNode(NULL, (const xmlChar*)*elname); 
    106106    assert(node_raw); 
    107     xmlAddChild(fragment, node_raw); 
    108107    return createObject( "Element", doc, node_raw ); 
    109108END 
     
    117116    xmlNodePtr node_raw = xmlNewCDataBlock(doc, (const xmlChar*)*elname, elname.length()); 
    118117    assert(node_raw); 
    119     xmlAddChild(fragment, node_raw); 
    120118    return createObject( "CDATASection", doc, node_raw ); 
    121119END