summaryrefslogtreecommitdiffstats
path: root/dom/base/test/file_bug498897.html
blob: b0d36f4ca57838b92e357faf8fef496c10a32120 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<html>
<head>
	<title>Testcase for bug 498897</title>
<script type="application/javascript" language="javascript">
<!--
function test()
{
  var hadException = false;
  try {
    document.createComment('a');
  }
  catch (e) {
    hadException = true;
  }
  parent.ok(!hadException, "Shouldn't have got an exception!");
  parent.testFinished();
}
//-->
</script>
</head>
<body onload="test();">
</body>
</html>