[Bug 9634] New: Most enumerated attributes are not limited to only known values

http://www.w3.org/Bugs/Public/show_bug.cgi?id=9634

           Summary: Most enumerated attributes are not limited to only
                    known values
           Product: HTML WG
           Version: unspecified
          Platform: All
               URL: http://dev.w3.org/html5/spec/infrastructure.html#refle
                    ct
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec bugs
        AssignedTo: dave.null@w3.org
        ReportedBy: mounir.lamouri@gmail.com
         QAContact: public-html-bugzilla@w3.org
                CC: ian@hixie.ch, mike@w3.org, public-html@w3.org,
                    Olli.Pettay@gmail.com


At the moment, according to the specs, if the IDL attribute of an enumerated
attributes isn't limited to only known values, the IDL attribute should reflect
the content attribute.
In most case, it sounds better to have the IDL attribute reflecting the current
state instead of reflecting the content attribute. It would prevent the caller
to guess the current state depending on the value. This is a lost of time and
effort and it is clearly not future-proof.

At the moment, only three attributes are limited to only known values:
- document.dir
- keygen.keytype
- area.shape

Maybe other attributes could be limited to only known values ?
Even, couldn't we image having a different default: every IDL attribute of an
enumerated attribute could be limited to only known value except if the
opposite is specified. IMO, it sounds natural to have IDL attributes returning
the current state instead of the content attribute value.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Saturday, 1 May 2010 15:12:14 UTC