{ "id": "91655", "key": "TIMOB-9071", "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": "13406", "description": "Sprint 2012-10 API", "name": "Sprint 2012-10 API", "archived": true, "released": true, "releaseDate": "2012-05-20" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-05-10T16:36:25.000+0000", "created": "2012-05-09T10:56:02.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_xml", "qe-testadded" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-12-10T06:03:00.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": "h1. Problem\r\nOn iOS, getAttributeNS doesn't accept a null first argument. It requires a string. This isn't consistent with browser behavior, which accepts a null value. The same applies to createAttributeNS.\r\n\r\nh2. Expected Behavior\r\nCalling getAttributeNS with null as the first argument should behave identically to getAttribute. The same applies to createAttributeNS.\r\n\r\nh2. Reproduction\r\n{code:title=app.js}\r\nvar xmlDoc = Ti.XML.parseString('');\r\nvar anchor = xmlDoc.getElementsByTagName('a').item(0);\r\ntry {\r\n alert(anchor.getAttributeNS(null, 'href'));\r\n}\r\ncatch (err) {\r\n alert('FAIL: getAttributeNS: ' + err);\r\n}\r\ntry {\r\n alert(xmlDoc.createAttributeNS(null, 'id'));\r\n}\r\ncatch (err) {\r\n alert('FAIL: createAttributeNS: ' + err);\r\n}\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: getAttributeNS and createAttributeNS Don't Accept Null First Argument", "creator": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "environment": null, "comment": { "comments": [ { "id": "194312", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/2162", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-05-09T14:42:50.000+0000", "updated": "2012-05-09T14:42:50.000+0000" }, { "id": "194738", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 2.0.2.v20120514121649 on iPhone 4 5.0.1 (need to add var win = TI.UI.createWindow(); when building to device)", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-14T15:20:19.000+0000", "updated": "2012-05-14T15:20:19.000+0000" }, { "id": "283469", "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:00.000+0000", "updated": "2013-12-10T06:03:00.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }