<?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>22072</bug_id>
          
          <creation_ts>2013-05-17 16:09:29 +0000</creation_ts>
          <short_desc>&quot;current click count&quot; deserves its own attribute</short_desc>
          <delta_ts>2013-06-19 00:08:25 +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>HISTORICAL - DOM3 Events</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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="Gary Kacmarcik">garykac</reporter>
          <assigned_to name="Travis Leithead [MSFT]">travil</assigned_to>
          <cc>annevk</cc>
    
    <cc>bugs</cc>
    
    <cc>mike</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>87803</commentid>
    <comment_count>0</comment_count>
    <who name="Gary Kacmarcik">garykac</who>
    <bug_when>2013-05-17 16:09:29 +0000</bug_when>
    <thetext>In 5.2.3 Mouse Event Types:
http://www.w3.org/TR/DOM-Level-3-Events/#events-mouseevents

The last paragraph of this section states:

&quot;Implementations must maintain the current click count when generating mouse events. This must be a non-negative integer indicating the number of consecutive clicks of a pointing device button within a specific time. The delay after which the count resets is specific to the environment configuration.&quot;

Later on, the spec indicates that this should be stored in UIEvent.detail.

If nothing else, there should be more information in 5.2.3 about where/how the click count is stored/used.

But why isn&apos;t this stored in a proper attribute rather than stuffed away in a generic &apos;detail&apos; attribute?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87804</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-05-17 16:24:38 +0000</bug_when>
    <thetext>It has been .details since forever I think. Not sure why&apos;d change that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87822</commentid>
    <comment_count>2</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2013-05-17 17:51:38 +0000</bug_when>
    <thetext>Yeah, .detail has been used for that for ages. In theory we could add
another property but not sure why.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87864</commentid>
    <comment_count>3</comment_count>
    <who name="Gary Kacmarcik">garykac</who>
    <bug_when>2013-05-18 01:27:54 +0000</bug_when>
    <thetext>Having a named property for a specific purpose is better than storing data in a generic catch-all &apos;data&apos; (or &apos;detail&apos; in this case) attribute.

Code that references something like &apos;event.clickCount&apos; is self-documenting whereas with &apos;event.detail&apos; you have to think about what is stored there for the particular event you&apos;re looking at.

So, a proper attribute name is clearly better, but perhaps it&apos;s too late to update this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>