return true, cause DocumentFragment is never displayed.

(cherry picked from commit ec9c99554ace24b5a1fbeae4a22dbe29cdc62f77)
This commit is contained in:
Niels Lyngsø
2019-11-21 12:14:26 +01:00
committed by Warren Buckley
parent 7ccfe809ae
commit 213fa0e71e

View File

@@ -186,7 +186,7 @@
if (!nodeComputedStyle) {
if (node instanceof DocumentFragment) {
return false;
return true;// though DocumentFragment dosnt directly have display 'none', we know that it will never be visible, and therefor we return true. (and do not cache this, cause it will change if appended to the DOM)
} else {
nodeComputedStyle = this.doc.defaultView.getComputedStyle(node);
}