WC3 验证问题,找不到行


WC3 Validation problems, Cant find row

当我要验证我的网站时,我收到此错误:

行: 279 列: 3

<?php include("byline.php"); ?>     Saw <?. Probable cause: Attempt to use an XML processing instruction in HTML. (XML processing instructions are not supported in HTML.).

我进行验证的网站只有 74 行,而不是 279 行。有一些包含的文件,每个文件大约有 40-80 行。我如何找到这个 279:第 2 行??(我已经搜索了" <?php include("byline.php"); ?>"之后的所有文件,但没有结果...

您没有结果,因为您正在搜索输出。在检查文件的索引中,您应该将包含到署名.php。

即使您的文件只有 74 行,包含也会在输出中,因此最终渲染的结果会更大。

我的意思是,署名.php也可能不包含在主文件中,而是包含在另一个文件中;

<?php include('first_include.php'); ?>

在里面,你的:

<?php include('byline.php'); ?>

最好的方法是在索引中搜索包含,然后从那里开始。