{ "id": "89556", "key": "TIMOB-8551", "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": [ { "id": "13273", "description": "Release 2.0.2", "name": "Release 2.0.2", "archived": false, "released": true, "releaseDate": "2012-05-31" }, { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13405", "description": "Sprint 2012-09 API", "name": "Sprint 2012-09 API", "archived": true, "released": true, "releaseDate": "2012-05-06" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-08-01T22:38:19.000+0000", "created": "2012-04-05T11:21:18.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_xml", "qe-testadded" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-12-10T06:03:26.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": "Attempting to access the 'ownerDocument' property of a created node (e.g. createElement, createElementNS) returns null rather than a valid document node.\r\n\r\nWhen pulling in other open-source javascript libraries for various projects, some of them rely on the ownerDocument field, especially when creating new documents.\r\n\r\nTo reproduce, add the following code to an application and run:\r\n\r\n{code}\r\nvar doc = Ti.XML.parseString('data');\r\n\r\n// The following retrieves the first node. The owner document will be valid and correct\r\nvar e1 = doc.firstChild;\r\nvar o1 = e1.ownerDocument;\r\n\r\n// The following creates a new node. The owner document will be null\r\nvar e2 = doc.createElement(\"test\");\r\nvar o2 = e2.ownerDocument;\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: XML: ownerDocument property is null for created nodes", "creator": { "name": "jenglish", "key": "jenglish", "displayName": "Jeff English", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "jenglish", "key": "jenglish", "displayName": "Jeff English", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "192269", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Test code\r\n{code}\r\n\r\n\tvar doc = Ti.XML.parseString('data');\r\n\t \r\n\t// The following retrieves the first node. The owner document will be valid and correct\r\n\tvar e1 = doc.firstChild;\r\n\t \r\n\t// The following creates a new node. The owner document will be null\r\n\tvar e2 = doc.createElement(\"test\");\r\n\t\r\n\tif (e1.ownerDocument == e2.ownerDocument)\r\n\t{\r\n\t\tTi.API.info(\"Documents match PASS\");\t\r\n\t}\r\n\telse\r\n\t{\r\n\t\tTi.API.info(\"Documents mismatch FAIL\");\r\n\t}\r\n\r\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-04-23T12:02:01.000+0000", "updated": "2012-04-23T12:02:01.000+0000" }, { "id": "192270", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/2049", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-04-23T12:02:57.000+0000", "updated": "2012-04-23T12:02:57.000+0000" }, { "id": "195321", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 2.0.2.v20120517141652 on iPhone 4s 5.1", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-18T13:12:18.000+0000", "updated": "2012-05-18T13:12:18.000+0000" }, { "id": "211165", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Re-opening to edit label", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-01T22:37:48.000+0000", "updated": "2012-08-01T22:37:48.000+0000" }, { "id": "283470", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/5039\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-10T06:03:26.000+0000", "updated": "2013-12-10T06:03:26.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }