Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[CXMLNode name] should return nil for some node types #34
See https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSXMLNode_Class/Reference/Reference.html for documentation of the name method.
In particular, the name method should only return a non-nil value for elements, attributes, namespaces, processing instructions, and DTD-declaration nodes - according to Apple's documentation.
Am I correct in thinking that TouchXML should attempt to mimic this behaviour? Currently TouchXML returns names for text nodes ("text"), in particular, which is confusing some third party code I'm using which depends upon the specified behaviour of name as above.
I would be happy to submit a pull-request if you agree this is an issue.