<分区>
这个:<!---->
这……这……东西。就在那里。
邪恶的 7 个字符,迫使 IE 在怪癖模式下像这样在顶部呈现所有页面:
<!----><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
如果它不是邪恶的,我不知道它是什么,因为它肯定不在我的模板文件中,因为它的前几行是:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<?php $this->outputHead(); ?>
</head>
我在实际输出代码中当然没有发现任何问题:
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();
}
我真的不明白。这个东西怎么会进入我的代码?
我可以想象 >
咬到最后变成了微笑,那东西在对着我笑。
它困扰着我的梦想,它杀死了我的猫,我不知道它接下来会做什么,但它会杀死某物。
帮助我,网络开发之神!
编辑:请注意,它确实出现在所有浏览器中,但它似乎会驱动 IE,而不会驱动其他浏览器。