firefox3的注释bug。。。。
调试aspnetpeger的时候发现firefox3的注释bug。。。。
下面是aspnetpager生成的html代码
Code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head><title>
无标题页
</title></head>
<body>
<form name="form1" method="post" action="WebForm1.aspx" id="form1">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTM4ODA0OTk0Ng9kFgICAw9kFgICAQ8PFgYeC1JlY29yZGNvdW50AmQeEEN1cnJlbnRQYWdlSW5kZXgCBR4IUGFnZVNpemUCBWRkZFSN0T/brGSlFrMNJkHFhWWbt2Me" />
</div>
<div>
<!------------------------------ AspNetPager V4.3.3 Start ------------------------------>
<!-------------------- Copyright:2003-2005 Webdiyer(www.webdiyer.com) --------------------->
<div id="AspNetPager1">
<a title="转到第1页" href="javascript:__doPostBack('AspNetPager1','1')">首页</a><span style="width:5px;"></span><a title="转到第4页" href="javascript:__doPostBack('AspNetPager1','4')"><font face="webdings">3</font></a><span style="width:5px;"></span><a title="转到第1页" href="javascript:__doPostBack('AspNetPager1','1')">1</a><span style="width:5px;"></span><a title="转到第2页" href="javascript:__doPostBack('AspNetPager1','2')">2</a><span style="width:5px;"></span><a title="转到第3页" href="javascript:__doPostBack('AspNetPager1','3')">3</a><span style="width:5px;"></span><a title="转到第4页" href="javascript:__doPostBack('AspNetPager1','4')">4</a><span style="width:5px;"></span><font style="font-weight:Bold;color:red;">5</font><span style="width:5px;"></span><a title="转到第6页" href="javascript:__doPostBack('AspNetPager1','6')">6</a><span style="width:5px;"></span><a title="转到第7页" href="javascript:__doPostBack('AspNetPager1','7')">7</a><span style="width:5px;"></span><a title="转到第8页" href="javascript:__doPostBack('AspNetPager1','8')">8</a><span style="width:5px;"></span><a title="转到第9页" href="javascript:__doPostBack('AspNetPager1','9')">9</a><span style="width:5px;"></span><a title="转到第10页" href="javascript:__doPostBack('AspNetPager1','10')">10</a><span style="width:5px;"></span><a href="javascript:__doPostBack('AspNetPager1','11')" title="转到第11页"></a><span style="width:5px;"></span><a title="转到第6页" href="javascript:__doPostBack('AspNetPager1','6')">下一页</a><span style="width:5px;"></span><a title="转到第20页" href="javascript:__doPostBack('AspNetPager1','20')">尾页</a><span style="width:5px;"></span>
</div>
<!------------------------------- AspNetPager V4.3.3 End -------------------------------->
</div>
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
</div>
<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
//]]>
</script>
</form>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head><title>
无标题页
</title></head>
<body>
<form name="form1" method="post" action="WebForm1.aspx" id="form1">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTM4ODA0OTk0Ng9kFgICAw9kFgICAQ8PFgYeC1JlY29yZGNvdW50AmQeEEN1cnJlbnRQYWdlSW5kZXgCBR4IUGFnZVNpemUCBWRkZFSN0T/brGSlFrMNJkHFhWWbt2Me" />
</div>
<div>
<!------------------------------ AspNetPager V4.3.3 Start ------------------------------>
<!-------------------- Copyright:2003-2005 Webdiyer(www.webdiyer.com) --------------------->
<div id="AspNetPager1">
<a title="转到第1页" href="javascript:__doPostBack('AspNetPager1','1')">首页</a><span style="width:5px;"></span><a title="转到第4页" href="javascript:__doPostBack('AspNetPager1','4')"><font face="webdings">3</font></a><span style="width:5px;"></span><a title="转到第1页" href="javascript:__doPostBack('AspNetPager1','1')">1</a><span style="width:5px;"></span><a title="转到第2页" href="javascript:__doPostBack('AspNetPager1','2')">2</a><span style="width:5px;"></span><a title="转到第3页" href="javascript:__doPostBack('AspNetPager1','3')">3</a><span style="width:5px;"></span><a title="转到第4页" href="javascript:__doPostBack('AspNetPager1','4')">4</a><span style="width:5px;"></span><font style="font-weight:Bold;color:red;">5</font><span style="width:5px;"></span><a title="转到第6页" href="javascript:__doPostBack('AspNetPager1','6')">6</a><span style="width:5px;"></span><a title="转到第7页" href="javascript:__doPostBack('AspNetPager1','7')">7</a><span style="width:5px;"></span><a title="转到第8页" href="javascript:__doPostBack('AspNetPager1','8')">8</a><span style="width:5px;"></span><a title="转到第9页" href="javascript:__doPostBack('AspNetPager1','9')">9</a><span style="width:5px;"></span><a title="转到第10页" href="javascript:__doPostBack('AspNetPager1','10')">10</a><span style="width:5px;"></span><a href="javascript:__doPostBack('AspNetPager1','11')" title="转到第11页"></a><span style="width:5px;"></span><a title="转到第6页" href="javascript:__doPostBack('AspNetPager1','6')">下一页</a><span style="width:5px;"></span><a title="转到第20页" href="javascript:__doPostBack('AspNetPager1','20')">尾页</a><span style="width:5px;"></span>
</div>
<!------------------------------- AspNetPager V4.3.3 End -------------------------------->
</div>
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
</div>
<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
//]]>
</script>
</form>
</body>
</html>
本来不应该显示的注释部分
<!------------------------------- AspNetPager V4.3.3 End -------------------------------->
确在firefox3里面显示出来了