Обновил браузер Google Chrome, и перестала работать моя страница.
HTML(index.html):
<!DOCTYPE html>
<html>
<head>
<title>HOME</title>
<meta charset="utf-8">
<link rel="import" href="doc.html"> <!-- Импорт страницы -->
</head>
<body>
<script>
var doc = document.querySelector('link[rel="import"]').import;
var text = doc.querySelector('.doc');
document.body.appendChild(text.cloneNode(true));
</script>
</body>
</html>
HTML(doc.html)
<div class="doc">
<h2>Заголовок</h2>
<p><span>ТЕКСТ</span></p>
<p>ОПИСАНИЕ</p>
</div>
Консоль Гугл Хрома:
(index):6 HTML Imports is deprecated and has now been removed as of M80. See https://www.chromestatus.com/features/5144752345317376 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
(index):13 Uncaught TypeError: Cannot read property 'querySelector' of undefined
at (index):13