{ "id": "84611", "key": "TIMOB-7041", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-03-20T18:12:27.000+0000", "created": "2012-01-09T15:40:16.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "15861", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "88318", "key": "TIMOB-8135", "fields": { "summary": "iOS: Drillbit failure in XML", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-13T17:59:20.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": "h3. Problem\r\n\r\nGetAttribute value from XML does not work in 1.8.0.1\r\n\r\nh3. Reproducible steps:\r\n \r\n1. Run the code below with 1.8.0.1 Titanium SDK.\r\nPlease see the 1.8.0.1 attached image.\r\n\r\n2. Run the the code below with 1.7.5 Titanium SDK.\r\nPlease see the 1.7.5 attached image.\r\n\r\nNotice that in 1.7.5 Titanium SDK the the value is displayed on the window.\r\n\r\nh3. Expected behavior:\r\nCustomer wants to have the same behavior in 1.8.0.1 Titanium SDK.\r\n\r\nh3. Tested with the next specs:\r\n\r\nSimulator\r\n\r\niPhone 4\r\nVersion of the device: 5.0.1\r\n\r\nTitanium Studio, build: 1.0.8.201112291658\r\nTitanium SDK: 1.8.0.1 & 1.7.5\r\n\r\nh3. Console Logs:\r\n\r\n{code: title=1.8.0.1 Titanium SDK & 2.3.3-Bad Behavior}\r\n1.8.0.1 Titanium SDK.[INFO] One moment, building ...[INFO] Titanium SDK version: 1.8.0.1 (12/22/11 13:09 fbdc96f)[INFO] iPhone Device family: universal\r\n[INFO] iPhone SDK version: 5.0[INFO] iPhone simulated device: iphone\r\n[INFO] Launching application in Simulator\r\n[INFO] Launched application in Simulator (1.71 seconds)[INFO] Found 5.0 patch installed\r\n[INFO] Application started\r\n[INFO] v1.8 Demo/1.0 (1.8.0.1.fbdc96f)[INFO] Loaded\r\n[INFO] [object TiDOMNodeList][INFO] 0[INFO] 26\r\n{code}\r\n\r\n{code: title=1.7.5 Titanium SDK & Android 2.3.3-Good Bevabior}\r\n1.7.5 Titanium SDK\r\n\r\n[INFO] One moment, building ...[INFO] Titanium SDK version: 1.7.5[INFO] iPhone Device family: universal\r\n[INFO] iPhone SDK version: 5.0[INFO] iPhone simulated device: iphone\r\n[INFO] Launching application in Simulator\r\n[INFO] Launched application in Simulator (1.30 seconds)[INFO] Found 5.0 patch installed\r\n[INFO] Application started\r\n[INFO] v1.8 Demo/1.0 (1.7.5.ab20af7)[INFO] Loaded\r\n[INFO] [object TiDOMNodeList][INFO] 1[INFO] 26\r\n{code}\r\n\r\nh3. Code:\r\n{Code}\r\nvar win1 = Titanium.UI.createWindow({\r\n\ttitle: 'Tab 1',\r\n\tbackgroundColor: '#fff'});\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor: '#999',\r\n\ttext: '',\r\n\tfont: {\r\n\t\t\tfontSize: 20,\r\n\t\t\tfontFamily: 'Helvetica Neue'\r\n\t\t },\r\n\ttextAlign: 'center',\r\n\twidth: 'auto'});win1.add(label1);\r\n\r\nvar xhr = Titanium.Network.createHTTPClient();\r\nxhr.onerror = function(e) \r\n{\tTi.API.error('Error received while requesting library data: ' + JSON.stringify(e));\r\n};\r\n\r\nxhr.onload = function() \r\n{\tif (this.readyState == 4) \r\n\t{\r\n\t\tvar xmldoc = this.responseXML.documentElement;\r\n\t\tTi.API.info('Loaded');\r\n\t\tTi.API.info(xmldoc.getElementsByTagName('archive')); //This line of code says that the archive tag is detected\r\n\t\tTi.API.info(xmldoc.getElementsByTagName('archive').length); // this line says that it recieves an archive tag with no nodes\r\n\t\tTi.API.info(xmldoc.getElementsByTagName('media').length); // this line says it recieves 26 nodes for \"media\" tag which is a child of \"archive\" tag\r\n\t\tlabel1.text = 'XML Version : ' + xmldoc.getElementsByTagName('archive').item(0).getAttribute('version');\r\n\t}};\r\nxhr.open('GET', 'http://apps.investis.com/Kingfisher-IR/Library.xml');\r\nxhr.send();\r\nwin1.open();\r\n{Code}\r\n\r\nh3. Helpdesk\r\nAPP-697182\r\n \r\n\r\n \r\n \r\n \r\n ", "attachment": [ { "id": "24980", "filename": "1.7.5.png", "author": { "name": "framirez", "key": "framirez", "displayName": "Francisco Antonio Duran Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-09T15:40:16.000+0000", "size": 119983, "mimeType": "image/png" }, { "id": "24981", "filename": "1.8.0.1.png", "author": { "name": "framirez", "key": "framirez", "displayName": "Francisco Antonio Duran Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-09T15:40:16.000+0000", "size": 117250, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: getAttribute value from XML does not work in 1.8.0.1", "creator": { "name": "framirez", "key": "framirez", "displayName": "Francisco Antonio Duran Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "framirez", "key": "framirez", "displayName": "Francisco Antonio Duran Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iPhone 4\r\nVersion of the device: 5.0.1\r\n\r\nTitanium Studio, build: 1.0.8.201112291658\r\nTitanium SDK: 1.8.0.1 & 1.7.5", "comment": { "comments": [ { "id": "186354", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull #1655", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-13T16:52:52.000+0000", "updated": "2012-03-13T16:52:52.000+0000" }, { "id": "186652", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 2.0.0.v20120315123246\r\nTitanium Studio, build: 2.0.0.201203142055\r\nxcode: 4.2\r\nDevice: iphone 4s (5.0.1)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-15T12:26:50.000+0000", "updated": "2012-03-15T12:26:50.000+0000" }, { "id": "187583", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The problem described in the source code is incorrect. XML in versions prior to 1.8.0 did NOT have the correct behavior; the new behavior is correct. The JS source makes assumptions based on this previously incorrect behavior.\r\n\r\nSee the DOM Level 2 spec for information about how getElementsByTagName should behave: http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-745549614\r\n\r\nThe original \"fix\" for this issue has been removed in favor of the correct behavior, in order to resolve TIMOB-8135.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-20T18:12:27.000+0000", "updated": "2012-03-20T18:14:18.000+0000" }, { "id": "411435", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-13T17:59:20.000+0000", "updated": "2017-03-13T17:59:20.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }