سؤال

I have the following html page which refers to an include file for my generic head content. However, rather than inserting the contents of 'head.html' in to the head element, it is being added to the body element.

I have no script errors. This occurs in FF, Chrome or IE. I have tried removing all content from the head.html except a single trace and it still gets included in the body. Could there be another framework that is interfering with the rendering of the head, I assumed it was simply going to get the include file and dump it in exactly where it is referenced so quite how this is occurring seems rather weird to me.

tia.


<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--#include file="includes/head.html" -->

{ rest of non-generic head content }

 </head>

  <body class="animated fadeIn" style="" id="users">  ..............
هل كانت مفيدة؟

المحلول

Well that was a thing of pure evil.

It transpired the include file was encoded as UTF-8 and that was breaking the correct SSI behaviour. Changing the file to ANSI fixed it.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top