[TIMOB-476] Element.nodeValue should be null / add getText()
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:53:10.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 0.9.3 |
Components | iOS |
Labels | iphone, xml |
Reporter | Marshall Culpepper |
Assignee | Jeff Haynie |
Created | 2011-04-15T02:29:58.000+0000 |
Updated | 2011-04-17T01:53:10.000+0000 |
Description
Currently accessing the "nodeValue" of an Element is returning that Element's text in iPhone, but this should return "null" according to the DOM Level 3 spec:
http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#ID-1950641247"> http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#I...
We could probably also add our own getText() method and/or text attribute on top of this, that would basically loop through the element's children, and concat all of the Text nodes together and return it.
i added text attribute for this.