Google Blogoscoped

Forum

More Little Known HTML Facts

Shannon J hager [PersonRank 1]

Thursday, September 30, 2004
19 years ago

I hate to hit and run, but I can't test from here, so....

I think the "//" comment does not work in VBscript. At least it didn't the last time I tried. It works in JavaScript and in C#, but VBScript used the single quote for comments, if I recall correctly.

Also, the Marquee tag worked in Firefox the last time I saw it (which was depressingly recent).

Philipp Lenssen [PersonRank 10]

19 years ago #

Shannon, I was talking about VBS explicitly, and yes, it did work using C-style double-slash. I was astounded too, which is why I mentioned it. You can call the following VBS to see for yourself:

option explicit

function test()
    dim s

    s = "foo"
    // s = "bar"
    msgbox s

end function

The HTML to run it:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
   <title>Title</title>
   <script type="text/vbscript" src="file.vbs"></script>
</head>
<body onload="test()">

Test

</body>
</html>

Forum home

Advertisement

 
Blog  |  Forum     more >> Archive | Feed | Google's blogs | About
Advertisement

 

This site unofficially covers Google™ and more with some rights reserved. Join our forum!