Commons:User scripts/reports/MediaWiki:FormRestorer.js
Jump to navigation
Jump to search
This is the report page for MediaWiki:FormRestorer.js. It is bot-maintained. All manual changes might be overwritten.
jshint[edit]
- ISSUE:
line 15 character 28
: Use '===' to compare with 'null'. - Evidence:if ( document.cookie == null || document.cookie.length == 0
- ISSUE:
line 15 character 62
: Use '===' to compare with '0'. - Evidence:if ( document.cookie == null || document.cookie.length == 0
- ISSUE:
line 16 character 24
: Use '===' to compare with 'null'. - Evidence:|| cookie_name == null || cookie_name.length == 0)
- ISSUE:
line 16 character 54
: Use '===' to compare with '0'. - Evidence:|| cookie_name == null || cookie_name.length == 0)
- ISSUE:
line 31 character 14
: Use '===' to compare with 'null'. - Evidence:if (form == null || form.elements == null || form.elements.length == 0) return;
- ISSUE:
line 31 character 39
: Use '===' to compare with 'null'. - Evidence:if (form == null || form.elements == null || form.elements.length == 0) return;
- ISSUE:
line 31 character 71
: Use '===' to compare with '0'. - Evidence:if (form == null || form.elements == null || form.elements.length == 0) return;
- ISSUE:
line 49 character 31
: Expected a 'break' statement before 'case'. - Evidence:single_select = true;
- ISSUE:
line 54 character 33
: Use '===' to compare with 'null'. - Evidence:if (element_value == null) {
- ISSUE:
line 67 character 29
: Use '===' to compare with 'null'. - Evidence:if (element_value == null) element_value = "";
- ISSUE:
line 73 character 25
: Use '!==' to compare with 'null'. - Evidence:if (element_value != null) {
- ISSUE:
line 75 character 23
: Use '===' to compare with 'null'. - Evidence:if (this_item == null || this_item.length == 0) this_item = element.name;
- ISSUE:
line 75 character 51
: Use '===' to compare with '0'. - Evidence:if (this_item == null || this_item.length == 0) this_item = element.name;
- ISSUE:
line 77 character 24
: Use '===' to compare with 'null'. - Evidence:if (cookie_val == null || cookie_val.length == 0)
- ISSUE:
line 77 character 53
: Use '===' to compare with '0'. - Evidence:if (cookie_val == null || cookie_val.length == 0)
- ISSUE:
line 83 character 20
: Use '!==' to compare with 'null'. - Evidence:if (cookie_val != null) {
- ISSUE:
line 85 character 44
: Use '!==' to compare with 'null'. - Evidence:+ (cookie_attributes != null ? cookie_attributes : "");
- ISSUE:
line 114 character 21
: Do not use Number as a constructor. - Evidence:value = new Number (val);
- ISSUE:
line 120 character 26
: 'j' is already defined. - Evidence:for (var j = 0; j < numbers.length; j++)
- ISSUE:
line 121 character 28
: Do not use Number as a constructor. - Evidence:value[j] = new Number (numbers[j]);
- ISSUE:
line 136 character 2
: Missing semicolon. - Evidence:} // end FormRestorer