[whatwg] enumerated attributes: needs 1:1 mapping from conforming values to states

The HTML spec says:
> If a reflecting IDL attribute is a |DOMString| attribute whose content 
> attribute is an enumerated attribute 
> <http://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#enumerated-attribute>, 
> and the IDL attribute is limited to only known values, then, on 
> getting, the IDL attribute must return the conforming value associated 
> with the state the attribute is in (in its canonical case),
And also says:
> The keywords are each defined to map to a particular /state/ (several 
> keywords might map to the same state, in which case some of the 
> keywords are synonyms of each other; additionally, some of the 
> keywords can be said to be non-conforming, and are only in the 
> specification for historical reasons).
I assume that if there are multiple keywords that map to the same state, 
only one of those keywords will be conforming.  But I think that needs 
to be clarified in the last-quoted text above.

    David

Received on Wednesday, 31 August 2011 11:31:24 UTC