re: DOM elements with ID's are global variables VIEW POST

FULL DISCUSSION
 

Saw this behavior in cordova-plugin-splashscreen where they used the element's id without any kind of check, assuming it will exist.

Problem was my application removed that element and their code didn't check for it's existence.

Good post.

code of conduct - report abuse