When I attempt to run a vbscript URL
like
vbscript:"<HTML%20><HEAD%20><TITLE%20>T</TITLE%20></HEAD%20><BODY%20></BODY%20></HTML%20>",
a browser window opens but it shows the error message
"Invalid character 6 at line 1".
The source for the failed transient page is, in my case,
<HTML
><SCRIPT LANGUAGE=vbscript
>var __w="<HTML ><HEAD ><TITLE >T</TITLE ></HEAD ><BODY ></BODY ></HTML >";
if(__w!=null)document.write(__w);</SCRIPT></HTML>
It does not make sense:
the attribute "LANGUAGE=vbscript"
declares the language of the SCRIPT element's event handlers,
not the language of the script itself,
but Internet Explorer probably thinks it contains VBScript and reports an
error.
This does not happen when I navigate to the URL from inside the browser
and the page source correctly contains my string in this case;
however, I am unable to save such a page to disk.
The browser shows 0% save progress
and the only thing I can do is to cancel.
I do not get any error when I use the javascript URL scheme instead;
however, this is not what should happen
because the resulting document contains my text embedded in an extra HTML
tag,
which makes it invalid as a HTML document.