这个: <!---->
这......这......事.在那里.
邪恶的7个字符,迫使IE在怪异模式下像这样在顶部渲染所有页面:
<!----><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
Run Code Online (Sandbox Code Playgroud)
如果它不是邪恶我不知道是什么,因为它肯定不在我的模板文件中,因为它的前几行是:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<?php $this->outputHead(); ?>
</head>
Run Code Online (Sandbox Code Playgroud)
我当然没有看到实际输出代码中的任何问题:
function build()
{
if ($this->disabled)
{
return $this->content;
}
else
{
global $footer;
ob_start();
$location = $this->location;
include($this->location['theme_nr'].'/overall.php');
return ob_get_clean();
}
}
function outputAll()
{
// stop capturing everything
$this->content = ob_get_clean();
// build the page
echo $this->build();
}
Run Code Online (Sandbox Code Playgroud)
我真的不明白.这件事怎么会进入我的代码?
我可以想象最后那>一点变成了笑容,而事情就是嘲笑我.
它困扰着我的梦想,它杀死了我的猫,我不知道接下来要做什么,但它会杀死一些东西.
网络开发之神,请帮助我吧!
编辑:只是一个注释,它确实出现在所有浏览器中,但它似乎驱动IE弹道而没有其他.
我查看了您发布的 git 存储库,但它不包含在其中。您可以尝试将 github 上的副本与当前副本进行比较,因为更改就在您所做的更改中。
如果您使用的是 IDE,请在全局文件中搜索字符串。这些“错误”可能会很麻烦。