[英]:css3-container XPath Selector
I have the following line of code in an html file, I have no idea what is is and why there is a : infront. 我在html文件中有以下代码行,我不知道它是什么以及为什么有一个:infront。 However, I am processing the DOM and want to remove all similar nodes using an xpath selector. 不过,我处理DOM并希望删除使用XPath选择所有类似的节点。 I can't seem to be able to use "//:css-container" to select the element. 我似乎无法使用“ //:css-container”来选择元素。
<:css3-container style="z-index: 3000; position: absolute; direction: ltr; top: 92px; left: -9998px;">
Any ideas? 有任何想法吗?
If it is in the DOM you could try 如果它在DOM中,您可以尝试
//*[local-name() = "css3-container"]
or 要么
//*[local-name() = ":css3-container"]
(if it not considered an empty namespace) (如果它不被视为空的名称空间)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.