<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Cannot traverse document.getElementsByTagName in sec.sogou.com"
href="https://bugs.webkit.org/show_bug.cgi?id=160379#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Cannot traverse document.getElementsByTagName in sec.sogou.com"
href="https://bugs.webkit.org/show_bug.cgi?id=160379">bug 160379</a>
from <span class="vcard"><a class="email" href="mailto:cdumez@apple.com" title="Chris Dumez <cdumez@apple.com>"> <span class="fn">Chris Dumez</span></a>
</span></b>
<pre><span class="quote">> elements = document.getElementsByTagName("a")</span >
< HTMLCollection [<a>, <a>, <a>, <a>, <a>, <a>, <a id="login">, <a id="user">, <a>, <a>, …] (39)
<span class="quote">> elements.length</span >
< 39
<span class="quote">> for (var i = 0; i < elements.length; i++) { console.log(elements[i]); }</span >
< undefined
<span class="quote">> elements[1]</span >
< <a href="/">首页</a>
So it looks like console.log() is not working?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>