[Koha-devel] Clean HTML validations....

Owen Leonard oleonard at myacpl.org
Mon Jun 5 19:34:18 CEST 2017


The validation error in question is:

"Error: Element option without attribute label must not be empty."

There seems to be little to no human-readable documentation for that
particular error, but it seems to mean that these are invalid:

<option></option>
<option value=""></option>

This is valid for some reason, but doesn't appear to be a functional
improvement:

<option label="foo"></option>

The "label" attribute for <option> isn't even supported by Firefox.

> <option value=””> </option>
> <option value=””>Enter something meaningful</option> (where the phrase is
> descriptive of what is expected, or what nothing really means in this case)

The simple answer is to use

> <option value=””>Enter something meaningful</option>

Like this: <option value=””> -- Choose -- </option>

Unfortunately the situation isn't always simple, as with Bug 3311,
"Statistical reports should error if row and column aren't selected"

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=3311

The solution offered by the patches, while correct, may make the form
harder to use because of visual clutter.

I think it would be interesting to learn what benefits there might be
to the various options for differently-abled users such as the
visually impaired.

  -- Owen

-- 
Web Developer
Athens County Public Libraries
http://www.myacpl.org


More information about the Koha-devel mailing list