<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>9634</bug_id>
          
          <creation_ts>2010-05-01 15:12:12 +0000</creation_ts>
          <short_desc>Most enumerated attributes are not limited to only known values</short_desc>
          <delta_ts>2010-10-04 14:30:34 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>http://dev.w3.org/html5/spec/infrastructure.html#reflect</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>10289</dependson>
          <blocked>9635</blocked>
    
    <blocked>9636</blocked>
    
    <blocked>9741</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Mounir Lamouri">mounir</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>bugs</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>35339</commentid>
    <comment_count>0</comment_count>
    <who name="Mounir Lamouri">mounir</who>
    <bug_when>2010-05-01 15:12:12 +0000</bug_when>
    <thetext>At the moment, according to the specs, if the IDL attribute of an enumerated attributes isn&apos;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&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38780</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-09-10 01:35:02 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: no spec change
Rationale: This seems to have been fixed already.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38781</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-09-10 01:35:52 +0000</bug_when>
    <thetext>(Specifically, most are now so limited.)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>