Это ошибка от IE или от моего кода? - "Ожидание http://mysite.com"
Когда я обращаюсь к своей странице, заголовок загружается правильно, но через секунду он изменяется на "Ожидание http://example.com".
Загрузка страницы, но даже после того, как все загружено, заголовок продолжается, но только на вкладке IE, потому что в лотке заголовок как и должен быть.
PS: Это не происходит с Chrome. И версия I.E - 10
Изображение проблемы:
![enter image description here]()
Мой код HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" type="image/ico" href="#" onclick="location.href='http://www.datatables.net/favicon.ico'; return false;" />
<title>DataTables Editor example</title>
<style class="include" type="text/css">
@import "support/bootstrap/css/bootstrap.css";
@import "support/bootstrap/dataTables/dataTables.bootstrap.css";
@import "css/customTable.css";
</style>
<script class="include" type="text/javascript" charset="utf-8" src="../../../media/js/jquery.js"></script>
<script class="include" type="text/javascript" charset="utf-8" src="../../../media/js/jquery.dataTables.js"></script>
<script class="include" type="text/javascript" charset="utf-8" src="../../TableTools/media/js/TableTools.js"></script>
<script class="include" type="text/javascript" charset="utf-8" src="../../TableTools/media/js/ZeroClipboard.js"></script>
<script class="include" type="text/javascript" charset="utf-8" src="../media/js/dataTables.editor.js"></script>
<script class="include" type="text/javascript" charset="utf-8" src="support/bootstrap/js/bootstrap.js"></script>
<script class="include" type="text/javascript" charset="utf-8" src="support/bootstrap/dataTables/dataTables.bootstrap.js"></script>
<script class="include" type="text/javascript" charset="utf-8" src="support/bootstrap/dataTables/dataTables.editor.bootstrap.js"></script>
<script class="include" type="text/javascript" charset="utf-8" src="./js/custom.js"></script>
</head>
<body class="c_body">
<div class="mContainer">
<div id="dt_div">
<table class="table table-striped table-bordered display" id="example">
<thead>
<tr>
<th style="text-align: center;">Data</th>
<th style="text-align: center;">Tema</th>
<th style="text-align: center;">Vínculo</th>
<th style="text-align: center;">Empresa</th>
<th style="text-align: center;">Sub contratada</th>
<th style="text-align: center;">NDP</th>
<th style="text-align: center;">CH</th>
<th style="text-align: center;">HHT</th>
<th style="text-align: center;">Gerência</th>
<th style="text-align: center;">Área Solicitante</th>
<th style="text-align: center;">CC</th>
<th style="text-align: center;">Rateio</th>
</tr>
</thead>
</table>
</div>
<div class="spacer"></div>
</body>
</html>
Ответы
Ответ 1
Microsoft подтвердила эту проблему как ошибку в IE10. Вопрос закрыт статусом "Не исправить".
https://connect.microsoft.com/IE/feedback/details/787208/ie10-waiting-for-domains-url-text-occasionally-gets-stuck-on-tabs-title-only-after-refreshing-it
Это также известная ошибка в IE11.
Ответ 2
Как ни странно, мне удалось исправить это для ie8, явно не навредив Firefox или Chrome, используя это в JavaScript
<script language="javascript">
window.onfocus = function(){
var title_var = document.title;
document.title = title_var;
}
</script>
Поскольку Charly H предлагает использовать onload,
<script language="javascript">
window.onload = function(){
var title_var = document.title;
document.title = title_var;
}
</script>