return true, cause DocumentFragment is never displayed.
(cherry picked from commit ec9c99554ace24b5a1fbeae4a22dbe29cdc62f77)
This commit is contained in:
committed by
Warren Buckley
parent
7ccfe809ae
commit
213fa0e71e
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user