Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-476] Element.nodeValue should be null / add getText()

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:53:10.000+0000
Affected Version/sn/a
Fix Version/s0.9.3
ComponentsiOS
Labelsiphone, xml
ReporterMarshall Culpepper
AssigneeJeff Haynie
Created2011-04-15T02:29:58.000+0000
Updated2011-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.

Comments

  1. Jeff Haynie 2011-04-15

    i added text attribute for this.

JSON Source