HTML Validation Errors are generated by User Settings

Issue #143 resolved
Roger Haase created an issue

The Wiki Appearance Settings and Options of User Settings generate HTML errors (YMMV):


Result: 5 errors / 2 warnings

Info: W3c Online Validation

line 1248 column 209 - Error: Attribute placeholder not allowed on element input at this point.

line 1295 column 54 - Error: The for attribute of the label element must refer to a form control.

line 1306 column 60 - Error: The for attribute of the label element must refer to a form control.

line 1317 column 54 - Error: The for attribute of the label element must refer to a form control.

line 1328 column 49 - Error: The for attribute of the label element must refer to a form control.

The placeholder name may need a "data-" prefix to make it a valid custom data attribute:

<input type="number" name="usersettings_ui_results_per_page" value="0" class="required" id="f_usersettings_ui_results_per_page" placeholder="Number of results per page (0=no paging)" required="required" />

The for attribute may be mismatched names:

<dt> <label for="f_usersettings_options_show_comments">Show comment sections</label> </dt> <dd> <input type="checkbox" name="usersettings_options_show_comments" value="1" id="f_usersettings_options_show_comments_1" />

Comments (7)

  1. Roger Haase reporter

    The bug is back, 4 errors like this:

    line 1376 column 54 - Error: The for attribute of the label element must refer to a form control.

    Caused by:

    </dd> <dt> <label for="f_usersettings_options_edit_on_doubleclick">Open editor on double click</label> </dt> <dd> <input type="checkbox" name="usersettings_options_edit_on_doubleclick" value="1" checked="checked" class="" id="f_usersettings_options_edit_on_doubleclick_1" /> </dd>

  2. Log in to comment