Changeset 21003 for lang/cplusplus/llv8call/trunk/ext/libxml/element.cc
- Timestamp:
- 10/09/08 00:10:43 (3 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/cplusplus/llv8call/trunk/ext/libxml/element.cc
r20991 r21003 52 52 END 53 53 54 FUNCTION(hasAttribute) 55 ARG_COUNT(1); 56 ARG_str(name, 0); 57 EXTERNAL_NODE(); 58 if (domGetAttrNode(node, (const xmlChar*)*name)) { 59 return True(); 60 } else { 61 return False(); 62 } 63 END 64 54 65 FUNCTION(setAttributeNode) 55 66 ARG_COUNT(1); … … 86 97 BIND_IM("appendTextNode", appendText); // alias 87 98 BIND_IM("getAttribute", getAttribute); 99 BIND_IM("hasAttribute", hasAttribute); 88 100 setupNodeIM(OBJECT_TEMPLATE); 89 101 EXPORT_CLASS("Element"); 90 102 ENDSUBMODULE 91 103 92 // REST: 3/24 93 // TODO: elem.new 104 // REST: 6/24 94 105 // TODO: elem.setAttribute 95 106 // TODO: elem.setAttributeNS … … 99 110 // TODO: elem.removeAttribute 100 111 // TODO: elem.removeAttributeNS 101 // TODO: elem.hasAttribute102 112 // TODO: elem.hasAttributeNS 103 113 // TODO: elem.getChildrenByTagName
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)