为什么只能在Firefox上看到奇怪的代码?

bob*_*ck4 5 wordpress firefox google-tag-manager

wordpress安装中的标题中(但仅在Firefox中),我看到一个带有奇怪文本的输入字段。

源代码中的“奇怪” HTML代码位于<body>Google跟踪代码管理器的后面和内部。它是

<input><div>lebowski­lebowski</div>
Run Code Online (Sandbox Code Playgroud)

它在页面上显示带有该有趣文本的输入字段。

您可以在这里看到它被其他HTML字符串所包围。

<body class="page-template page-template-templates page-template-temp_ricerca page-template-templatestemp_ricerca-php page page-id-186 wp-custom-logo">
<!-- Google Tag Manager (noscript) -->
<input><div>lebowski­lebowski</div>
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-P538SGM" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
Run Code Online (Sandbox Code Playgroud)

我还查看了header.php内,发现任何奇怪的地方

<body <?php body_class(); ?>>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-P538SGM" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
Run Code Online (Sandbox Code Playgroud)

可能是代码注入。

希望你能帮我

Bea*_*oot 5

这已成为modernizr.js https://hashnode.com/post/dude-that-c​​arpet-really-tied-the-room-together-cjc225hrm05iz9cwuz18md3mo https://github.com/Modernizr/Modernizr/issues/中的错误 1052

在新版本中已修复。更新您的主题,看看他们是否加载了新版本,或者在此处获取js并将其替换为主题文件。 https://cdnjs.com/libraries/modernizr