[英]something is adding a span to my html and I'm not sure what
I'm using NodeJS, my package.json has express, jquery, and node-sass as dependencies, and within my code I'm only importing / requiring jQuery.我正在使用 NodeJS,我的 package.json 有 express、jquery 和 node-sass 作为依赖项,在我的代码中我只导入/需要 jQuery。
For some reason, when my index.html file is served, it has the line出于某种原因,当我的 index.html 文件被提供时,它有一行
<span id="warning-container"><i data-reactroot=""></i></span>
I don't see what's doing this manipulation or why.我不明白是什么在做这种操纵或为什么。 I'm inclined to believe it's something with express, bit I've yet to find any information about this online.
我倾向于相信这是快递的东西,我还没有在网上找到任何关于这个的信息。
Any idea what adds that line, what said line is doing, and how I can get rid of it if I don't need it?知道是什么添加了这条线,所说的线在做什么,以及如果我不需要它如何摆脱它?
If you are using React/client library ?如果您正在使用 React/客户端库?
React version 0.15.0-alpha.1, there's default data-reactroot attribute on root node. React 版本 0.15.0-alpha.1,根节点上有默认的 data-reactroot 属性。
I noticed that the extension Web Of Trust is adding this exact span.我注意到扩展Web Of Trust正在添加这个确切的跨度。 WOT is a nice protection tool but when it messes up the code in the code inspector.
WOT 是一个很好的保护工具,但是当它在代码检查器中弄乱代码时。
WOT is a good protection but as I don't want extensions messing up the HTML of the sites I'm visiting, I've removed it. WOT 是一种很好的保护,但由于我不希望扩展程序弄乱我正在访问的站点的 HTML,因此我已将其删除。 And reported WOT for doing this bad thing.
并报告了 WOT 做这件坏事。
Funny thing... I've noticed that when I type some word in the address bar of Chrome then I would see the Google search page plus a text above it suggesting: Did you mean to go to http://word?有趣的是...我注意到,当我在 Chrome 的地址栏中输入一些词时,我会看到 Google 搜索页面以及上面的文字提示:您是要访问 http://word 吗? or something similar.
或类似的东西。 That's where this extension uses it for and it's extremely annoying...
这就是这个扩展使用它的地方,它非常烦人......
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.