[英]Google chrome is returning window.parent.frames.length value one more than other browsers
[英]Google Chrome not returning results for queries of more than one element
由于某些原因,当请求多个元素时,Google Chrome浏览器不会返回DOM结果。
例如, document.getElementById()
和document.querySelector()
起作用,但是document.querySelectorAll()
, document.getElementsByTagName()
和document.getElementsByClassName()
无效。
下面是我用来测试页面的JavaScript控制台的屏幕截图。 此外,该页面可在Safari中完美运行,并且这些问题不会在那里持久存在。
我发现问题出在JavaScript控制台中数组的显示上,而不是它们的实际值上。 此问题记录在这里: http : //code.google.com/p/chromium/issues/detail?id=121292
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.