I have the following question, is it a problem to use obsolete javascript functions?
As for example using the functions "escape" and "unescape" instead of "encodeURI" and "decodeURI".
Greetings.
I have the following question, is it a problem to use obsolete javascript functions?
As for example using the functions "escape" and "unescape" instead of "encodeURI" and "decodeURI".
Greetings.
Usually when a function in any API is considered obsolete, we should avoid it because:
The escape () function was divided into two because there were two possible scenarios: a URI or a component of a URI. In each case you have to treat the chain differently to avoid problems, which you can not do with a single function.
The problem is that, although browsers still support them, at any time they can stop supporting them because they no longer belong to the standard.
So, although now it will work without problems in any browser, it is very likely that in the near future some of them (or all) will stop supporting it.