prototypejs / prototype

Prototype JavaScript framework
http://prototypejs.org/
Other
3.54k stars 639 forks source link

$F throws an error when missing element #360

Open kstubs opened 1 year ago

kstubs commented 1 year ago

$F throws an error if the element is missing in the DOM. Instead, it should either return NULL, UNDEFINED, or an empty string. It shouldn't raise an error IMHO. Actually I don't believe it is raising an error, but probably just error'ing on its own!