W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2011

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

From: David Flanagan <dflanagan@mozilla.com>
Date: Wed, 31 Aug 2011 11:31:24 -0700
Message-ID: <4E5E7DFC.5080605@mozilla.com>
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:35 UTC