Changeset 20947 for lang/cplusplus/llv8call/trunk/ext/libxml/attr.cc
- Timestamp:
- 10/08/08 09:00:07 (3 months ago)
- Files:
-
- 1 modified
-
lang/cplusplus/llv8call/trunk/ext/libxml/attr.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/cplusplus/llv8call/trunk/ext/libxml/attr.cc
r20881 r20947 21 21 // THE SOFTWARE. 22 22 23 #include " libxml.h"23 #include "node.h" 24 24 25 25 #define EXTERNAL_ATTR() EXTERNAL(xmlAttrPtr, attr, args.This(), 0) 26 26 27 FUNCTION( _new)27 FUNCTION(setValue) 28 28 ARG_COUNT(1); 29 assert(args[0]->IsExternal()); 30 args.This()->SetInternalField(0, args[0]); 31 return args.This(); 29 ARG_str(val, 0); 30 EXTERNAL_NODE(); 31 domSetNodeValue(node, (xmlChar*)*val); 32 return Undefined(); 32 33 END 33 34 34 35 SUBMODULE(init_attr) 35 36 CLASS_WITH_CONSTRUCTOR(_new); 36 INTERNALCOUNT(1); 37 setupNodeIM(OBJECT_TEMPLATE); 38 BIND_IM("getValue", getValue); 39 BIND_IM("value", getValue); 40 BIND_IM("setValue", setValue); 41 BIND_IM("getOwnerElement", parentNode); 37 42 EXPORT_CLASS("Attr"); 38 43 ENDSUBMODULE 39 44 40 // REST: 0/8 41 // TODO: node.new 42 // TODO: node.getValue 43 // TODO: node.value 44 // TODO: node.setValue 45 // TODO: node.getOwnerElement 46 // TODO: node.setNamespace 47 // TODO: node.isId 48 // TODO: node.serializeContent($docencoding) 45 // REST: 5/8 46 // TODO: attr.setNamespace 47 // TODO: attr.isId 48 // TODO: attr.serializeContent($docencoding) 49
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)