Test:

<!DOCTYPE HTML>
<script>var s = '9">'; document.write('<meta charset="ISO-8859-' + s)</script>

Expected result: Windows-1254

Encoding used by browser is: Script did not run.

Result: Script did not run.