Head tag content misplaced

estielmo

New Member
I have an html document with the following structure:\[code\] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <base href="http://www.mywebpage.com/subdir/"></base><title>home</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"></meta> <link href="http://stackoverflow.com/questions/12725604/mystylesheet.css" rel="stylesheet" type="text/css" /></head><body>Irrelevant content here</body></html>\[/code\]Now, the page looks fine when called directly, but when I use an include() call from another file in the same server, IE9 goes nuts. It disregards the base tag and the CSS styles. When I look at it with the content inspector, all the head content, except the title, is rendered as if they were inside the body section. Even the !Doctype. Also, the inspector shows empty text before and after the misplaced tags. I've checked my file for special, invisible charachters with notepad++ and I've found nothing.The problem does not reproduce in Firefox. When I use Chrome, it shows the content as it should, but it does misplace the same tags as IE.
 
Back
Top