Commit d341153a authored by Julien Cigar's avatar Julien Cigar
Browse files

fix elem.nodeName

parent 0aecffda
...@@ -499,8 +499,8 @@ ...@@ -499,8 +499,8 @@
Yeti.DOM.firstElementTag = function(elem, tag) { Yeti.DOM.firstElementTag = function(elem, tag) {
var tag = tag.toUpperCase(); var tag = tag.toUpperCase();
for (var i=0, _len=elem.childNodes.length; i<_len; i++) { for (var i=0, _len=elem.childNodes.length; i<_len; i++) {
if (elem.childNodes[i].nodeType === 1 && var child = elem.childNodes[i];
elem.nodeName.toUpperCase() == tag) { if (child.nodeType === 1 && child.nodeName.toUpperCase() == tag) {
return elem.childNodes[i]; return elem.childNodes[i];
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment