Bug #35 - Can't get the coverage report if I used the document.domain in the html
Submitted by: Anonymous
Date submitted: 2011-03-18 11:40:22 UTC
Status: Open
I found a question ,if I write a script code and set the document.domain
attribute in my html , after I run the test by jscoverage proxy , I can't get
the coverage reoport ,the html is :
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Example</title>
<script language="javascript">
document.domain="qq.com";
</script>
<script type="text/javascript" src="script.js"></script>
<style>
div.black {
color: black;
}
div.red {
color: red;
font-weight: bold;
}
</style>
</head>
<body>
<div id="request" class="red">Please select your favorite number:</div>
<input type="radio" name="number" id="radio1" onclick="go(this);"><label
for="radio1">One</label><br>
<input type="radio" name="number" id="radio2" onclick="go(this);"><label
for="radio2">Two</label><br>
<input type="radio" name="number" id="radio3" onclick="go(this);"><label
for="radio3">Three</label><br>
<input type="radio" name="number" id="radio4" onclick="go(this);"><label
for="radio4">Four</label><br>
<div id="result" class="red"></div>
</body>
</html>
if I delete " document.domain="qq.com";", I can get the coverage report. expect
to your reply ,thanks .
Add a comment
Date submitted: 2011-03-19 15:11:54 UTC