I'm hitting a very peculiar difference between the Android browser and a WebView. Namely, I have the following markup:
<script type="text/javascript">
    <!--
    // some js code...
    // -->
</script>
Now, in the browser, this works perfectly fine. However, when loading the markup in the WebView using loadData(markup, "text/html", "utf-8"), the JavaScript code is not executed at all.
Now, if I remove the HTML comment tags (<!-- and -->), it works fine in the WebView as well. However, this is not something that I want to do, because the markup is coming from a web service that I'd rather not change.
Is there something I can do with the WebView to accept this markup?