The current system does minimal validation on some but not all arguments for functions both internal and external. In most cases, a default value is used is the argument is invalid. However, this may not be the optimal solution in some cases. An error may need to be thrown. Some very important arguments such as script src are not validated at all. A validation system needs to be implemented that can rememedy these problems.
The current system does minimal validation on some but not all arguments for functions both internal and external. In most cases, a default value is used is the argument is invalid. However, this may not be the optimal solution in some cases. An error may need to be thrown. Some very important arguments such as script src are not validated at all. A validation system needs to be implemented that can rememedy these problems.