{ "id": "83479", "key": "TIMOB-6510", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2011-12-12T09:59:25.000+0000", "created": "2011-12-07T17:29:08.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "regression" ], "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": "14107", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "82235", "key": "TIMOB-5959", "fields": { "summary": "iOS: Application error message says expression is undefined instead of null", "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": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T21:10:52.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": "Steps to reproduce:\r\n1. Copy the sample code into a new ti mobile project\r\n\r\n{code}\r\n\r\nvar win = Ti.UI.createWindow({});\r\nvar xmlString = \"\";\r\nvar doc = Ti.XML.parseString(xmlString);\r\nvar elem = doc.getElementsByTagName(\"mickey\").item(0);\r\n\r\nwin.open();\r\n\r\n{code}\r\n\r\n2. run the app\r\n\r\nExpected result:\r\nAn error should be thrown because the element does not exist\r\n\r\nActual result:\r\nNo error is thrown", "attachment": [], "flagged": false, "summary": "iOS : XML - When using the method getElemenetByTagName on an element that doesn't exist, an error should be thrown", "creator": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested on Ti Studio 1.0.7.201112061404\r\n
Ti Mob SDK 1.8.0.1.v20111207091653\r\n
OSX Lion\r\n
iPod Touch 4.3.5, iPhone 4S OS 5.0.1", "comment": { "comments": [ { "id": "175338", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "I apologize for the interruption, but I'm not so sure that exception should be thrown in this case. If no element is found by some tag name, empty NodeList collection should be returned, so doc.getElementsByTagName(\"mickey\").length would be 0 and doc.getElementsByTagName(\"mickey\").item(0) should return null.", "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2011-12-08T01:34:49.000+0000", "updated": "2011-12-08T01:36:55.000+0000" }, { "id": "175763", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This would violate the DOM L2 spec. Please see:\r\n\r\nhttp://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-536297177\r\n\r\nNode lists should return 'null', not throw an exception, for an item which is out of bounds.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-12T09:59:25.000+0000", "updated": "2011-12-12T09:59:25.000+0000" }, { "id": "414962", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as \"Won't Fix\".", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T21:10:52.000+0000", "updated": "2017-03-22T21:10:52.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }