{ "id": "92002", "key": "ALOY-6", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "14036", "description": "2012 Sprint 14", "name": "2012 Sprint 14", "archived": true, "released": true, "releaseDate": "2012-07-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-19T11:52:03.000+0000", "created": "2012-05-18T13:27:17.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "14036", "description": "2012 Sprint 14", "name": "2012 Sprint 14", "archived": true, "released": true, "releaseDate": "2012-07-19" } ], "issuelinks": [], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-22T13:21:17.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": "12326", "name": "XML", "description": "View XML and parsing" } ], "description": "Something is wrong with the html.pegjs grammar for HTML. It is generating loads of unnecessary elements in the generated object tree that will make parsing more difficult and time consuming in terms of performance. \r\n\r\nhere's a snippet of what I'm seeing:\r\n\r\n{code:lang=javascript}\r\n[ { tag: 'html',\r\n attrs: [],\r\n body: \r\n [ '\\n\\t',\r\n { tag: 'head',\r\n attrs: [],\r\n body: \r\n [ '\\n\\t\\t',\r\n { tag: 'title',\r\n attrs: [],\r\n body: [ 'Declarative UI Master Detail Test' ] },\r\n '\\n\\t\\t',\r\n { tag: 'script',\r\n attrs: [ [ 'src', '/controller/index.js' ] ],\r\n body: [] },\r\n '\\n\\t\\t',\r\n { tag: 'style',\r\n attrs: [],\r\n body: [ '\\n\\t\\t#mainWindow {\\n\\t\\t\\t-ti-layout: \\'vertical\\';\\n\\t\\t\\t-ti-navBarHidden: true;\\n\\t\\t\\t-ti-backgroundColor: \\'#00a\\';\\n\\t\\t}\\n\\t\\t' ] },\r\n '\\n\\t' ] },\r\n '\\n\\t',\r\n// and so on....\r\n{code}\r\n\r\nWe need to correct the HTML grammar so that these whitespace elements are no longer included in the generated object tree. ", "attachment": [], "flagged": false, "summary": "Generated HTML object tree full of whitespace elements", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "195328", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Details here: [https://github.com/appcelerator/ZipTi/commit/8e1e091f5c5eb0a5c6bdd1c8e9e2da6dd5041ae0|https://github.com/appcelerator/ZipTi/commit/8e1e091f5c5eb0a5c6bdd1c8e9e2da6dd5041ae0]", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-18T14:06:33.000+0000", "updated": "2012-05-18T14:06:33.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }