|
|
| version 1.80, 2007/10/10 17:37:18 | version 1.81, 2007/10/23 13:57:15 |
|---|---|
| Line 558 static void _hasAttribute(Request& r, Me | Line 558 static void _hasAttribute(Request& r, Me |
| // todo: when name="xmlns" | // todo: when name="xmlns" |
| // write out result | // write out result |
| r.write_no_lang(*new VBool(xmlGetProp(&element, name)!=0)); | r.write_no_lang(*new VBool(xmlHasProp(&element, name)!=0)); |
| } | } |
| // boolean hasAttributeNS(n DOMString namespaceURI, in DOMString localName) raises(DOMException); | // boolean hasAttributeNS(n DOMString namespaceURI, in DOMString localName) raises(DOMException); |
| Line 570 static void _hasAttributeNS(Request& r, | Line 570 static void _hasAttributeNS(Request& r, |
| const xmlChar* localName=as_xmlchar(r, params, 1, LOCALNAME_MUST_BE_STRING); | const xmlChar* localName=as_xmlchar(r, params, 1, LOCALNAME_MUST_BE_STRING); |
| // write out result | // write out result |
| r.write_no_lang(*new VBool(xmlGetNsProp(&element, localName, namespaceURI)!=0)); | r.write_no_lang(*new VBool(xmlHasNsProp(&element, localName, namespaceURI)!=0)); |
| } | } |
| // boolean hasAttributes | // boolean hasAttributes |