2015-11-07 111 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