* Source/NSXMLElement.m: Removing assertion that

parent must not be nil per Cocoa documentation for
	-(id)parent method in NSXMLNode.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34450 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
gcasa 2012-01-06 23:00:03 +00:00
parent 22eb9818a2
commit a31620793c
2 changed files with 8 additions and 3 deletions

View file

@ -220,9 +220,8 @@ GS_PRIVATE_INTERNAL(NSXMLElement)
NSAssert(nil != child, NSInvalidArgumentException);
NSAssert(index <= internal->childCount, NSInvalidArgumentException);
NSAssert(nil == [child parent], NSInvalidArgumentException);
kind = [child kind];
// FIXME ... should we check for valid kinds rather than invalid ones?
kind = [child kind];
// FIXME ... should we check for valid kinds rather than invalid ones?
NSAssert(NSXMLAttributeKind != kind, NSInvalidArgumentException);
NSAssert(NSXMLDTDKind != kind, NSInvalidArgumentException);
NSAssert(NSXMLDocumentKind != kind, NSInvalidArgumentException);