On Fri, Jan 28, 2011 at 1:02 PM, PhistucK <[email protected]> wrote:

> <!DOCTYPE HTML>
> ...</html>
> It shows -
> Uncaught SyntaxError: Unexpected token else
>
>
It _should_ be saying that the unknown token is the DOCTYPE tag, because v8
does not parse HTML.


> Also, running it without that semicolon -
> <!DOCTYPE HTML>
>

Stop trying to feed HTML to v8, and the problem should go away. Feed it only
the content of your script tag.

- Shows an alert - "a is not o".

The you're not using v8 direcly - v8 has no built-in alert() method.

Are you sure you don't mean Chromium instead of v8?

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to