mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
* Source/NSXMLElement.m (-addAttribute:): Raise correct exception.
* Tests/base/NSXMLNode/children.m: Add test cases for attributes. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34879 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b2e4fadd62
commit
391c16f630
3 changed files with 26 additions and 10 deletions
|
@ -155,7 +155,7 @@ GS_PRIVATE_INTERNAL(NSXMLElement)
|
|||
|
||||
if (nil != [attribute parent])
|
||||
{
|
||||
[NSException raise: @"NSInvalidArgumentException"
|
||||
[NSException raise: NSInternalInconsistencyException
|
||||
format: @"Tried to add attribute to multiple parents."];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue