ugh... yeah I think at a minimum... if for some reason this removal actually goes through, the replacement behavior needs to be standardized.
It will still mess things up, but at least if consistent we can focus on applicable solutions. e.g.
//override confirm() function
window.confirm(msg){
//we are breaking the web here by changing behaviors that have worked consistently for 25+ years, but...
return false;//immediately return false, with no user input
}
//override prompt() function
window.prompt(msg, default){
//we are breaking the web here by changing behaviors that have worked consistently for 25+ years, but...
return default || "";//immediately return the default passed in, or an empty string
}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
ugh... yeah I think at a minimum... if for some reason this removal actually goes through, the replacement behavior needs to be standardized.
It will still mess things up, but at least if consistent we can focus on applicable solutions. e.g.