oaksupport / pyv8

Automatically exported from code.google.com/p/pyv8
0 stars 0 forks source link

Stucked by <!-- ...> <! --> #195

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. There is a demo page like:

<html>
<head>
  <title>Script test</title>
</head>
<body>
  <div>
    Script test
  </div>
  <script type="text/javascript">
    <!--[if IE]>
        alert('Hello');
    <![endif]-->
  </script>
</body>
</html>

2. When the script code is executed by PyV8, an error occured, it says 
"SyntaxError: Unexpected token < (  @ 5 : 4 )  ->     <![endif]-->".

3. Why?

Original issue reported on code.google.com by xiongpen...@gmail.com on 3 Aug 2013 at 8:06

GoogleCodeExporter commented 8 years ago
How should i resolve it?

Original comment by xiongpen...@gmail.com on 3 Aug 2013 at 8:09

GoogleCodeExporter commented 8 years ago
Ignore this. I've found the reason.

Original comment by xiongpen...@gmail.com on 5 Aug 2013 at 10:26

GoogleCodeExporter commented 8 years ago

Original comment by flier...@gmail.com on 12 Aug 2013 at 4:20