Sp 121

From Htmlpedia
Jump to: navigation, search

OpenSP: Syntax of attribute value does not conform to declared value

Cause:

The value of an attribute contained something that is not allowed by the specified syntax for that type of attribute. For instance, the “selected” attribute must be either minimized as “selected” or spelled out in full as “selected="selected"”; the variant “selected=""” is not allowed.

Example:

Bad<option value="Wild Dogs" selected="">Wild Dogs</option>
Good<option value="Wild Dogs" selected="selected">Wild Dogs</option>

Solution:

Spell the attribute out in full.

References: