[whatwg] enumerated attributes: needs 1:1 mapping from conforming values to states
David Flanagan
dflanagan at mozilla.com
Wed Aug 31 11:31:24 PDT 2011
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
More information about the whatwg
mailing list