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

fix elem.nodeName

parent 0aecffda
......@@ -499,8 +499,8 @@
Yeti.DOM.firstElementTag = function(elem, tag) {
var tag = tag.toUpperCase();
for (var i=0, _len=elem.childNodes.length; i<_len; i++) {
if (elem.childNodes[i].nodeType === 1 &&
elem.nodeName.toUpperCase() == tag) {
var child = elem.childNodes[i];
if (child.nodeType === 1 && child.nodeName.toUpperCase() == tag) {
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