Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Belgian Biodiversity Platform
yeti
Commits
d341153a
Commit
d341153a
authored
Oct 11, 2012
by
Julien Cigar
Browse files
fix elem.nodeName
parent
0aecffda
Changes
1
Hide whitespace changes
Inline
Side-by-side
core.js
View file @
d341153a
...
...
@@ -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
];
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment