Javascript 警告:发生了 HTML 1300 导航?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/35275112/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Warning : HTML 1300 Navigation occured?
提问by MadeInDreams
I have loaded my site in Microsoft Edgeversion 25.10586.0.0 and SmartScreenis telling me that the site might be fake.
我在Microsoft Edge版本 25.10586.0.0 中加载了我的网站,SmartScreen告诉我该网站可能是假的。
This warning is new on the site. The console log shows;
此警告是网站上的新警告。控制台日志显示;
HTML1300: Navigation occured.
example.com
example.com is my domain name.
example.com 是我的域名。
I am using JQuery
on my site as well as JavaScript Promise functions
but the problem appeared after I added file download with Ajax promise function
.
我JQuery
也在我的网站上使用,JavaScript Promise functions
但问题出现在我用Ajax promise function
.
The warning shows right off the main page!
警告立即显示在主页上!
What could be causing this?
什么可能导致这种情况?
回答by Derek Pollard
From their website:
从他们的网站:
HTML1300
"Navigation occurred"
A new page was navigated to, or the current page was refreshed.
This is an informational message and not an error. To filter this message, right click the console pane, click Filter, and then uncheck Info.
HTML1300
“发生导航”
导航到新页面,或刷新了当前页面。
这是一条信息性消息,而不是错误。要过滤此消息,请右键单击控制台窗格,单击过滤器,然后取消选中信息。
In other words: I wouldn't be too worried about it if I were you.
换句话说:如果我是你,我就不会太担心。
UPDATE
更新
Effectively this is an open issue on the Microsoft Edge developer teams plate, and has been for quite some time. One of the many tickets can be seen here: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/13246371/
实际上,这是 Microsoft Edge 开发人员团队板块上的一个悬而未决的问题,并且已经存在了很长一段时间。可以在此处看到众多门票之一:https: //developer.microsoft.com/en-us/microsoft-edge/platform/issues/13246371/
That said, there's not much you can do until they fix Edge to follow the specs, so still, there's not much you can do.
也就是说,在他们修复 Edge 以符合规范之前,您无能为力,因此,您无能为力。