|
|
| version 1.77, 2007/04/23 10:30:10 | version 1.78, 2007/08/20 08:56:46 |
|---|---|
| Line 576 static void _hasAttributeNS(Request& r, | Line 576 static void _hasAttributeNS(Request& r, |
| r.write_no_lang(*new VBool(prop!=0)); | r.write_no_lang(*new VBool(prop!=0)); |
| } | } |
| // boolean hasAttributes | |
| static void _hasAttributes(Request& r, MethodParams&) { | |
| VXnode& vnode=GET_SELF(r, VXnode); | |
| xmlNode& element=get_self_element(vnode); | |
| // write out result | |
| r.write_no_lang(*new VBool(element.properties!=0)); | |
| } | |
| static void _getElementsByTagNameNS(Request& r, MethodParams& params) { | static void _getElementsByTagNameNS(Request& r, MethodParams& params) { |
| VXnode& vnode=GET_SELF(r, VXnode); | VXnode& vnode=GET_SELF(r, VXnode); |
| VXdoc& vdoc=vnode.get_vxdoc(); | VXdoc& vdoc=vnode.get_vxdoc(); |
| Line 872 MXnode::MXnode(const char* aname, VState | Line 881 MXnode::MXnode(const char* aname, VState |
| add_native_method("hasAttribute", Method::CT_DYNAMIC, _hasAttribute, 1, 1); | add_native_method("hasAttribute", Method::CT_DYNAMIC, _hasAttribute, 1, 1); |
| // boolean hasAttributeNS(in DOMString namespaceURI, in DOMString localName) raises(DOMException); | // boolean hasAttributeNS(in DOMString namespaceURI, in DOMString localName) raises(DOMException); |
| add_native_method("hasAttributeNS", Method::CT_DYNAMIC, _hasAttributeNS, 2, 2); | add_native_method("hasAttributeNS", Method::CT_DYNAMIC, _hasAttributeNS, 2, 2); |
| // boolean hasAttributes | |
| add_native_method("hasAttributes", Method::CT_DYNAMIC, _hasAttributes, 0, 0); | |
| /// parser | /// parser |
| // ^node.select[/some/xpath/query] = hash $.#[dnode] | // ^node.select[/some/xpath/query] = hash $.#[dnode] |