Commit 1ccf33b5 authored by Zéfling's avatar Zéfling 🎨
Browse files

recurcive error with node text

parent bd55e32e
......@@ -183,7 +183,7 @@ HTMLElement.prototype._getById = function (id) {
for (var i = 0; i < l; i++) {
if (children[i].id === id) {
return children[i];
} else {
} else if (children[i] instanceof HTMLElement) {
var node = children[i]._getById(id);
if (node instanceof HTMLElement) {
return node;
......
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