{ "id": "63025", "key": "TIMOB-2393", "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": "11243", "name": "Release 1.6.0 M10", "archived": true, "released": true, "releaseDate": "2011-02-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:58:59.000+0000", "created": "2011-04-15T03:18:32.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "drillbit", "ios", "regression", "release-1.6.0", "xml" ], "versions": [], "issuelinks": [], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:58:59.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}

Test fails xmlNodes:98:

\n
\nvar doc = Ti.XML.parseString(this.testSource[\"nodes.xml\"]);\nvar nodesList = doc.getElementsByTagName(\"nodes\");\nvar nodes = nodesList.item(0);\nvar node = nodes.getElementsByTagName(\"node\").item(0);\nvar subnodes = node.getElementsByTagName(\"node\");\nvalueOf(subnodes.item(1).getAttribute(\"id\")).shouldBe(\"node 2\");\n
\n

Could also be invalid on Android. Going to test and see.

{html}", "attachment": [], "flagged": false, "summary": "Drillbit regression: xml.js (Wrong node attribute)", "creator": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "128348", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

According to the DOM Level 2 spec, this is actually an Android\nbug:

\n

http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-1938918D

\n

In this particular case, it looks like Android returns the\n'self' node in the search result set if it matches, which is wrong.\niOS does the right thing and returns only elements from its\nsubtree.

\n

Reassigning to Marshall so he can look at it.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:18:33.000+0000", "updated": "2011-04-15T03:18:33.000+0000" }, { "id": "128349", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [4389dbeacebdf3108256500daeca170cc6c6d6ac])\nupdated drillbit test to have write DOM API tests,\ngetElementsByTagName now correctly filters the current node if it\nalso matches the query (fixing a bug in the Android Harmony Impl)\n[#2393 state:fixed-in-qa] \nhttps://github.com/appcelerator/titanium_mobile/commit/4389dbeacebd...

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:18:33.000+0000", "updated": "2011-04-15T03:18:33.000+0000" }, { "id": "128350", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [aa683287fe54044577aad83411faaf170eec1960])\nupdated drillbit test to have write DOM API tests,\ngetElementsByTagName now correctly filters the current node if it\nalso matches the query (fixing a bug in the Android Harmony Impl)\n[#2393 state:fixed-in-qa] \nhttps://github.com/appcelerator/titanium_mobile/commit/aa683287fe54...

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:18:33.000+0000", "updated": "2011-04-15T03:18:33.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }