From 60ab297910eebc732f1cb2690e5ffcea7a35edca Mon Sep 17 00:00:00 2001 From: helge Date: Sun, 4 Jun 2006 13:46:40 +0000 Subject: [PATCH] implemented -localName git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1266 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- sope-xml/DOM/ChangeLog | 4 ++++ sope-xml/DOM/DOMElement.m | 10 +++++++--- sope-xml/DOM/Version | 2 +- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/sope-xml/DOM/ChangeLog b/sope-xml/DOM/ChangeLog index 9fe2b28e..9012be97 100644 --- a/sope-xml/DOM/ChangeLog +++ b/sope-xml/DOM/ChangeLog @@ -1,3 +1,7 @@ +2006-06-04 Helge Hess + + * DOMElement.m: added missing -localName implementation (v4.5.21) + 2005-08-17 Helge Hess * GNUmakefile: removed duplicate definition of EDOM.h (v4.5.20) diff --git a/sope-xml/DOM/DOMElement.m b/sope-xml/DOM/DOMElement.m index d16930c5..cbd6eeb4 100644 --- a/sope-xml/DOM/DOMElement.m +++ b/sope-xml/DOM/DOMElement.m @@ -1,5 +1,6 @@ /* - Copyright (C) 2000-2005 SKYRIX Software AG + Copyright (C) 2000-2006 SKYRIX Software AG + Copyright (C) 2006 Helge Hess This file is part of SOPE. @@ -86,6 +87,9 @@ static NSNull *null = nil; - (NSString *)tagName { return self->tagName; } +- (NSString *)localName { + return self->tagName; +} - (void)setPrefix:(NSString *)_prefix { id old = self->prefix; @@ -280,7 +284,7 @@ static NSNull *null = nil; } objs[0] = _localName; - objs[1] = _ns ? _ns : (id)null; + objs[1] = _ns ? _ns : (NSString *)null; key = [NSArray arrayWithObjects:objs count:2]; return [self->keyToAttribute objectForKey:key] ? YES : NO; @@ -329,7 +333,7 @@ static NSNull *null = nil; } objs[0] = _localName; - objs[1] = _ns ? _ns : (id)null; + objs[1] = _ns ? _ns : (NSString *)null; key = [NSArray arrayWithObjects:objs count:2]; return [self->keyToAttribute objectForKey:key]; diff --git a/sope-xml/DOM/Version b/sope-xml/DOM/Version index 144c9bb7..e6164a36 100644 --- a/sope-xml/DOM/Version +++ b/sope-xml/DOM/Version @@ -1,3 +1,3 @@ # version file -SUBMINOR_VERSION:=20 +SUBMINOR_VERSION:=21 -- 2.39.5