简体   繁体   English

w3c验证程序检查网站的缓存版本

[英]w3c validator checks cached version of site

Here 这里

last error is Error Line 420, Column 42: Stray start tag script. 最后一个错误是错误行420,列42:错误开始标记脚本。

<script src="/skin/sayan_health/js/nc.js"></script>

But I fixed this error placing script tag inside body tag and if I go directly to the site http://sayanchaga.com in web inspector I see that its placed rightly. 但是我修复了将脚本标签放置在body标签内的错误,如果我直接访问Web检查器中的站点http://sayanchaga.com ,我会看到它正确放置了。 So why w3c validator still uses cached version of site and shows me that error again? 那么,为什么w3c验证程序仍使用站点的缓存版本并再次向我显示该错误?

The web inspector does not show you the source code. Web检查器不会向您显示源代码。 It shows you a representation of the DOM. 它显示了DOM的表示形式。

The browser performs normalisation and error correction on your code when it constructs the DOM so the DOM does not accurately reflect your source code. 浏览器在构造DOM时会对您的代码执行规范化和错误纠正,因此DOM无法准确反映您的源代码。

Use View Source instead. 请改用“查看源代码”。

The <script> tag is still in the wrong place when I look at the site. 当我查看站点时, <script>标记仍然位于错误的位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM