Merge pull request #5192 from MerganThePirate/master

Fixed bug from issue #5191
This commit is contained in:
Richard Davey 2020-07-13 12:47:23 +01:00 committed by GitHub
commit b8d12916e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@ var AddToDOM = function (element, parent)
target = parent;
}
}
else if (element.parentElement)
else if (element.parentElement || parent === null)
{
return element;
}