I load this html into webview with webview.loadData( data, "text/html", null);
<!DOCTYPE html>
<html>
<body>
<div ID="mydiv" style="width:100px; height:100px; border-style:solid;">
</div>
</body>
<script>
mydiv = document.getElementById("mydiv");
//comment
mydiv.style.backgroundColor = "red";
</script>
</html>
This is just a square div with red background. JavaScript in webview is enabled.
But line below //comment does't work. Without comment it works as intended.
Can you confirm this?
sdk 25