{ "id": "164347", "key": "TIMOB-24095", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-11-17T20:58:14.000+0000", "created": "2016-11-03T16:27:37.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-6.0.0" ], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-11-17T22:39:01.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "I am unable to set my HTML code using the {{html}} property of WebViews. Using the {{.setHtml()}} method works, however. Both the property and method work as expected on iOS.\r\n\r\n*Steps to reproduce issue*\r\n1. Create a new app, using the code below\r\n2. Build the app for your Android device\r\n\r\n*Expected Results*\r\nBoth the blue and green boxes contain the string {{Here is my webstuff}}\r\n\r\n*Actual Results*\r\nOnly the blue box (using {{.setHTML}}) contains the string. The green box (using {{.html}}) does not contain the string.\r\n\r\n*Code*\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nvar webview1 = Ti.UI.createWebView({height:100, top:0, borderColor:\"blue\"});\r\nvar webview2 = Ti.UI.createWebView({height:100, top:200, borderColor:\"green\"});\r\nwin.add(webview1);\r\nwin.add(webview2);\r\n\r\n//Set the HTML using the .html property and .setHtml() method\r\nwebview1.setHtml('

Here is my webstuff

');\r\nwebview2.html = '

Here is my webstuff

';\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Cannot set HTML property in WebViews", "creator": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "MacOS 10.12 (16A323)\r\nTi SDK 6.0.0.v20161102104808\r\nAppc NPM 4.2.8-9\r\nAppc CLI 6.0.0-68\r\nAlloy 1.9.4\r\n", "closedSprints": [ { "id": 752, "state": "closed", "name": "2016 Sprint 23 SDK", "startDate": "2016-11-05T00:39:37.027Z", "endDate": "2016-11-19T01:39:00.000Z", "completeDate": "2016-11-29T06:51:57.887Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "400348", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-11-03T16:51:23.000+0000", "updated": "2016-11-03T16:51:23.000+0000" }, { "id": "401456", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/8617", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-11-17T18:19:39.000+0000", "updated": "2016-11-17T18:19:39.000+0000" }, { "id": "401475", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\n\r\n{{HTML}} property can be set in WebViews.\r\nClosing.\r\n\r\nAppc Studio : 4.8.0.201611121409\r\nSDK Version : 6.1.0.v20161117125827\r\nMac OS Version : 10.12\r\nXcode Version : Xcode 8.1 Build version 8B62\r\nAppc CLI AND Appc NPM : {\"NPM\":\"4.2.9-1\",\"CLI\":\"6.0.0\"}\r\nTi CLI : 5.0.10\r\nAlloy : 1.9.4\r\nNode : v4.6.0\r\nDevice: running 7.1.1Nexus 6P", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-11-17T22:38:55.000+0000", "updated": "2016-11-17T22:38:55.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }