DEV Community

Discussion on: DOM elements with ID's are global variables

Collapse
 
andreujuanc profile image
Juan C. Andreu

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.