{ "id": "126302", "key": "TIMOB-16453", "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": "15939", "description": "2014 Sprint 07", "name": "2014 Sprint 07", "archived": true, "released": true, "releaseDate": "2014-04-11" }, { "id": "15942", "description": "2014 Sprint 07 Tooling", "name": "2014 Sprint 07 Tooling", "archived": true, "released": true, "releaseDate": "2014-04-11" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-05-08T05:25:47.000+0000", "created": "2014-02-12T06:29:37.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_webview", "qe-closed-3.3.0", "qe-testadded", "triage" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" }, { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2014-07-29T17:16:47.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": "h5. Problem \r\n\r\nWebView throw an error in Ti apps for local html file.\r\n\r\n\r\n\r\nh5. Testing Environments \r\nMac OS X 10.8.5 \r\nTitanium SDK: 3.2.1.GA\r\nTitanium CLI: 3.2.1\r\nIOS Simulator 7.0.3 \r\nAppcelerator Studio, build: 3.2.1.201402061120\r\n\r\n\r\nh5. Test Code\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tlayout : 'vertical',\r\n\tbackgroundColor : \"#fff\"\r\n\r\n});\r\n\r\n// Create a WebView\r\nvar aWebView = Ti.UI.createWebView({\r\n\turl : '/1357256.html' //http://appc.mrtechnologybd.com/1357256.html\r\n});\r\naWebView.addEventListener('load', function(e) {\r\n\tTi.API.info('webview loaded: ' + e.url);\r\n});\r\n\r\n// Add to the parent view.\r\nwin.add(aWebView);\r\n\r\nwin.open();\r\n\r\n{code}\r\n\r\nh5. Steps to reproduce \r\n# Create New Ti Sample project\r\n# Save attached html file to resource folder \r\n# Update app.js file with test code \r\n# Run test code in IOS Simulator \r\n# Check console log for error message \r\n\r\n\r\n\r\n\r\nh5. Error Logs\r\n{code}\r\n/Users/mrahman/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/xmldom/sax.js:102\r\n\t\t\tvar localNSMap = config.localNSMap;\r\n\t\t\t ^\r\nTypeError: Cannot read property 'localNSMap' of undefined\r\n at parse (/Users/mrahman/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/xmldom/sax.js:102:27)\r\n at XMLReader.parse (/Users/mrahman/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/xmldom/sax.js:30:3)\r\n at DOMParser.parseFromString (/Users/mrahman/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/xmldom/dom-parser.js:25:7)\r\n at Object.analyzeHtml (/Users/mrahman/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/titanium-sdk/lib/jsanalyze.js:159:58)\r\n at Object.analyzeHtmlFile (/Users/mrahman/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/titanium-sdk/lib/jsanalyze.js:146:17)\r\n at /Users/mrahman/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/iphone/cli/commands/_build.js:2726:17\r\n at async.whilst (/Users/mrahman/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/async/lib/async.js:619:13)\r\n at recursivelyCopy (/Users/mrahman/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/iphone/cli/commands/_build.js:2675:9)\r\n at /Users/mrahman/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/iphone/cli/commands/_build.js:2697:39\r\n at async.whilst (/Users/mrahman/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/async/lib/async.js:619:13)\r\n{code}\r\n\r\n\r\nThanks ", "attachment": [ { "id": "45840", "filename": "1357256.html", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2014-02-12T06:29:37.000+0000", "size": 26983, "mimeType": "text/html" }, { "id": "45856", "filename": "hello.html", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-02-12T19:34:04.000+0000", "size": 179, "mimeType": "text/html" } ], "flagged": false, "summary": "iOS: Build failed while parsing html", "creator": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": "Mac OS X 10.8.5 \r\nTitanium SDK: 3.2.1.GA\r\nTitanium CLI: 3.2.1\r\nIOS Simulator 7.0.3 \r\nAppcelerator Studio, build: 3.2.1.201402061120", "comment": { "comments": [ { "id": "299533", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "The attached 1357256.html file is extremely malformed. It contains multiple tags which is a huge no-no. Regardless, I've got a fix for when the html is so badly malformed.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-04-01T18:29:57.000+0000", "updated": "2014-04-01T18:29:57.000+0000" }, { "id": "299534", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5566", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-04-01T18:30:01.000+0000", "updated": "2014-04-01T18:30:01.000+0000" }, { "id": "303965", "author": { "name": "dpandey", "key": "dpandey", "displayName": "Deepti Pandey", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Verified as FIXED using :\r\nMac :10.9.2\r\nAppcelerator Studio, build: 3.3.0.201405011408\r\nSDK - 3.3.0.v20140507163312\r\nacs-1.0.14\r\nalloy-1.4.0-dev\r\nnpm-1.3.2\r\ntitanium-3.3.0-dev\r\ntitanium-code-processor-1.1.1\r\nXcode :5.1.1\r\nDevices used: iPhone 5s (7.1.1) , iPhone Simulator 7.1\r\nJsananalyzer is able to parse malformed html files. I am successfully able to run with given code and no console logs are seen with classic.html file.Hence closing as fixed. ", "updateAuthor": { "name": "dpandey", "key": "dpandey", "displayName": "Deepti Pandey", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-05-08T05:23:18.000+0000", "updated": "2014-05-08T05:25:42.000+0000" }, { "id": "303966", "author": { "name": "dpandey", "key": "dpandey", "displayName": "Deepti Pandey", "active": true, "timeZone": "Asia/Kolkata" }, "body": "reopening to add device details.", "updateAuthor": { "name": "dpandey", "key": "dpandey", "displayName": "Deepti Pandey", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-05-08T05:25:12.000+0000", "updated": "2014-05-08T05:25:12.000+0000" } ], "maxResults": 14, "total": 14, "startAt": 0 } } }