Skip to content

Commit 60ccc40

Browse files
author
Anthony Fang
committed
Revert "fix: add null check for element"
This reverts commit 3e47342.
1 parent 3e47342 commit 60ccc40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ie11CustomProperties.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@
544544
if (inheritingKeywords[value] || !register[property] || register[property].inherits) {
545545
//let el = this.pseudoElt ? this.computedFor : this.computedFor.parentNode;
546546
let el = this.computedFor.parentNode;
547-
while (el && el.nodeType === 1) {
547+
while (el.nodeType === 1) {
548548
// without, it affects performance: 1000 els inside 100 parents: 1000ms (instead of 600ms) is it acceptable?
549549
// would also remove complexity, because i can remove the ieCP_setters property
550550
//if (el.ieCP_setters && el.ieCP_setters[property]) {

0 commit comments

Comments
 (0)