{ "id": "62345", "key": "TIMOB-1713", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2011-11-05T18:24:10.000+0000", "created": "2011-04-15T03:00:15.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [], "versions": [ { "id": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "issuelinks": [ { "id": "15672", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "87519", "key": "TIMOB-7918", "fields": { "summary": "MobileWeb: XML parity issue", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "15673", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "87640", "key": "TIMOB-7946", "fields": { "summary": "MobileWeb: Ti.XML implementation", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-10T15:01:09.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

DOM nodes in the Titanium Mobile iPhone and Android\r\nimplementations have a 'text' property which pulls the text content\r\nof the node and any of its child nodes. While this is very handy,\r\nit's not compatible with WebKit and other browser DOM\r\nimplementations, which complicates adapting code from Titanium\r\nDesktop or browser environments.

\r\n

DOM level 3 specifies a textContent property for this, which is\r\nsupported by most browsers. IE has an equivalent innerText\r\nproperty; existing cross-browser toolkits like jQuery check both so\r\nshould start \"just working\" in this respect if textContent is\r\nadded. (Of course any other remaining incompatibilities need to be\r\nfixed too!)

\r\n

https://developer.mozilla.org/En/DOM/Node.textContent

\r\n

\r\nhttp://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#N...

\r\n

Adding a compatible getter should be a very easy patch.

{html}", "attachment": [], "flagged": false, "summary": "iOS: Implement DOMNode.textContent property for better compatibility with browser JS code", "creator": { "name": "brionvibber", "key": "brionvibber", "displayName": "Brion Vibber", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rpfeiffer", "key": "rpfeiffer", "displayName": "Ralf Pfeiffer", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "126427", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

We only guarantee support for DOM 2 features.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:00:16.000+0000", "updated": "2011-04-15T03:00:16.000+0000" }, { "id": "126428", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Actually going to TBS this. Why not.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:00:16.000+0000", "updated": "2011-04-15T03:00:16.000+0000" }, { "id": "171684", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We're supporting DOM2, not browsers.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-05T18:23:20.000+0000", "updated": "2011-11-05T18:23:20.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }