<?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>13375</bug_id>
          
          <creation_ts>2011-07-26 23:19:19 +0000</creation_ts>
          <short_desc>Don&apos;t define things in terms of attributes</short_desc>
          <delta_ts>2012-02-17 15:10:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>DOM</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ian &apos;Hixie&apos; Hickson">ian</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>mike</cc>
    
    <cc>Ms2ger</cc>
    
    <cc>www-dom</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>51510</commentid>
    <comment_count>0</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-07-26 23:19:19 +0000</bug_when>
    <thetext>DOMTokenList:

  If index is equal to or greater than the context object&apos;s length, then [...]

How to compare to an attribute is undefined. The attribute isn&apos;t a value, it&apos;s an attribute. Thus, does this mean comparing it against the value of the attribute at a particular time, or the pointer location of the attribute, or is it a lexical comparison against the name of the attribute, or what? What happens if the attribute is fiddled with in JS?

That&apos;s why I defined a variable and referenced that in the HTML version.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51856</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-07-31 09:01:13 +0000</bug_when>
    <thetext>For fiddling we have this text from HTML:

&quot;When a method or an attribute is said to call another method or attribute, the user agent must invoke its internal API for that attribute or method so that e.g. the author can&apos;t change the behavior by overriding attributes or methods with custom properties or functions in ECMAScript.&quot;

So I guess if we just talk about &quot;length attribute value&quot; it should be fine? If it is not the changes you suggested for the Event interface are not correct either (where we moved from internal concepts for each attribute to just having attributes).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64234</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-02-17 15:10:48 +0000</bug_when>
    <thetext>It talks about the length attribute value now. If that is not okay, a lot of text will have to be changed, and not just in the DOM...</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>