I am using a third party calendar app that is throwing an error in Firefox that reads “Permission denied to access property ‘parentNode’“. In Safari I’m getting “TypeError: ‘undefined’ is not any object (evaluating ‘t.parentNode’)“. Here is my while loop. Note: I did not write this code but I am attempting to fix it and failing.
while (t.parentNode !== null) {
if (t.id === this.divName) {
return true;
}
t = t.parentNode;
}
Any help is much appreciated!
Are you sure
tis notundefinedat the beginning of your loop?