2015-11-07 45 views
4

我们生成html文件以在浏览器上显示swf。以下是我们的HTML代码:Windows 10 Edge浏览器中的HTML注释解析问题

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
<!-- saved from url=(0021)http://www.domain_name.com --> 
<html> 
    <head> 
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
    <meta name="Keywords" content="xxxxx"> 
    <meta name="Description" content=""> 
    <title>test</title> // Title Of The HTML 
    <link rel="image_src" href="edge05_thumb.png"> 
    <link rel="viewlet" href="edge05.swf"> // SWF 
    <script language="javascript" type="text/javascript"> 
     <!-- 
      document.onhelp=new Function("return false"); 
      window.onhelp=new Function("return false"); 
     // --> 
    </script> 
... 
</html> 

此代码适用于所有其他浏览器,但在边缘它显示白色屏幕。从我的分析中我发现,只要我删除第二行(saved from url=(0021)http://www.domain_name.com)的评论,它就可以正常工作。

我试着在html中添加注释,但没有奏效。

+0

你能提供repros你在边缘发现的问题减少的HTML文件? – Sampson

+0

这里是我的代码示例中,我看到的问题(i.e.DetectFlashVer没有定义)在DetectFlashVer(....)。 – Pradnyarani

+0

请勿在此处粘贴代码,而应将[.Dtml](http://onedrive.com)上的.html文件托管。 – Sampson

回答

0

我很确定这是链接到你的//在最后的评论部分。

替换此:

<script language="javascript" type="text/javascript"> 
    <!-- 
     document.onhelp=new Function("return false"); 
     window.onhelp=new Function("return false"); 
    // --> 
</script> 

通过这样的:

<script language="javascript" type="text/javascript"> 
    <!-- 
      document.onhelp=new Function("return false"); 
      window.onhelp=new Function("return false"); 
    --> 
</script> 
+0

我试过但没有工作。 – Pradnyarani