Best way to locate source of Warning: Empty string passed to getElementById()

后端 未结 5 962
无人共我
无人共我 2021-02-03 17:03

Warning: Empty string passed to getElementById().
Source File: chrome://browser/content/browser.xul
Line: 0

Some days ago I star

5条回答
  •  一个人的身影
    2021-02-03 17:37

    In my case this was caused by Firefox performing HTML5 checks on the input fields on my form. Once the "required" property was removed from the form elements everything seemed to work fine again.

    This was something brought about by the MVC framework I use which generates these properties based on the model validation rules that require a field to be non-empty.

提交回复
热议问题