简体   繁体   English

W3C验证程序检测到隐藏的JavaScript

[英]There's hidden JavaScript detected by W3C validator

I checked my site in the W3C validator and it says that there's a script element in line 36 like this: 我在W3C验证器中检查了我的网站,并说在第36行有一个script元素,如下所示:

 9EbDL' /> <script type="text/javascript"> (func 

I searched in my HTML and I just found this 我搜索了HTML,然后发现了这个

<link rel='shortlink' href='https:wp.me/9EbDL' />

<link rel='dns-prefetch' href='//v0.wordpress.com'/>

Where is the <script type="text/javascript"> ? <script type="text/javascript">哪里?

Here are the links: 这里是链接:

You need to open the page in your web browser and use the developer tools to find this (injected) JavaScript. 您需要在Web浏览器中打开页面,并使用开发人员工具查找此(注入的)JavaScript。

View-Source: will not evaluate Javascript-Code but show the original source that is received from your server. View-Source:不会评估Javascript代码,但会显示从服务器接收到的原始源。

It seems that one of your Javascript-files you can observe in View-Source: -view is responsible for adding the script-tag in question to the DOM. 看来您可以在View-Source:观察到您的一个Javascript文件View-Source: -view负责将有问题的script-tag添加到DOM。

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

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