В файле с использованием ESI (включая крайнюю сторону) элементы esi:include
перемещаются из head
в body
. То же самое происходит, если я заменяю esi:include
на foo
или любой другой нестандартный элемент HTML:
До:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex, nofollow">
<esi:include src="/head.html"></esi:include>
<title>Test</title>
</head>
<body>
<h1>Test</h1>
</body>
</html>
После того, как:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex, nofollow">
<title>Test</title>
</head>
<body>
<esi:include src="/head.html"></esi:include>
<h1>Test</h1>
</body>
</html>
Это намеренно? Могу ли я предотвратить это?