<?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>16335</bug_id>
          
          <creation_ts>2012-03-12 20:59:42 +0000</creation_ts>
          <short_desc>undefined attribute values</short_desc>
          <delta_ts>2012-05-05 19:08:45 +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>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://lists.w3.org/Archives/Public/www-dom/2011JanMar/0066.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>LC, needsReview</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Travis Leithead [MSFT]">travil</reporter>
          <assigned_to name="Travis Leithead [MSFT]">travil</assigned_to>
          <cc>annevk</cc>
    
    <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>65396</commentid>
    <comment_count>0</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2012-03-12 20:59:42 +0000</bug_when>
    <thetext>PORTING from TRACKER, ISSUE-186:
[see http://lists.w3.org/Archives/Public/www-dom/2011JanMar/0066.html]

The result of getting attributes on an event object e created through

   var e = document.createEvent(&quot;Event&quot;)

appears to be completely undefined. What does eventPhase return, what does  
bubbles return, etc? Also after dispatching of an event is finished it is  
unclear what e.g. eventPhase and currentTarget ought to return. DOM Core  
attempts to cover this in detail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67196</commentid>
    <comment_count>1</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2012-04-30 23:05:52 +0000</bug_when>
    <thetext>Working on adding &quot;un-initialized values&quot; to all the attributes, in addition to the &quot;after dispatch&quot; values of various attributes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67200</commentid>
    <comment_count>2</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2012-04-30 23:12:29 +0000</bug_when>
    <thetext>Note: 3/5 browsers agree that the uninitialized value of eventPhase should be 0 (not AT_TARGET as described in DOM4). Of the other two non-agreeing browsers, they don&apos;t agree with each other. I think I&apos;ll stick with 0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67201</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-04-30 23:18:42 +0000</bug_when>
    <thetext>If you keep eventPhase with value 0 you&apos;ll have to invent a constant for it too. We have no exceptions to that rule thus far. I thought adding a constant would be a greater change than defining the default value, but I&apos;m happy to add a constant.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67240</commentid>
    <comment_count>4</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2012-05-02 16:11:56 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; If you keep eventPhase with value 0 you&apos;ll have to invent a constant for it
&gt; too. We have no exceptions to that rule thus far. I thought adding a constant
&gt; would be a greater change than defining the default value, but I&apos;m happy to add
&gt; a constant.

I&apos;m thinking that a constant would be the easiest way to align the implementations. I checked HTML5 + all the WebApps specs looking for a suitable existing constant--the closest match was &quot;NONE&quot; from HTMLTrackElement. (&quot;UNSENT&quot; from XHR could also be used. There&apos;s also a value of &quot;uninitialized&quot; for the effectAllowed of DataTransfer, which is a string value (not a constant).

So, I think I&apos;ll just stick with UNINITIALIZED unless anyone objects.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67242</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-05-02 16:30:19 +0000</bug_when>
    <thetext>I think I prefer NONE as UNINITIALIZED is hard to spell. But up to you.

Just for the record. Currently Safari/Chrome/IE do 0, Firefox 2, and Opera 1, right?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67243</commentid>
    <comment_count>6</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2012-05-02 16:42:34 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; I think I prefer NONE as UNINITIALIZED is hard to spell. But up to you.
&gt; 
&gt; Just for the record. Currently Safari/Chrome/IE do 0, Firefox 2, and Opera 1,
&gt; right?

No objection on NONE here--it also works well, since the eventPhase value goes back to 0 after dispatch in Safari/Chrome/IE and at that point it&apos;s initialized but in none of the other defined phases, so NONE works better :)

And yes, those are the current implementation values for eventPhase.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67247</commentid>
    <comment_count>7</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-05-02 18:43:39 +0000</bug_when>
    <thetext>Updated DOM4: http://dvcs.w3.org/hg/domcore/rev/98a9587a515c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67248</commentid>
    <comment_count>8</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-05-02 18:52:43 +0000</bug_when>
    <thetext>Filed bugs. Gecko: https://bugzilla.mozilla.org/show_bug.cgi?id=751286 WebKit: https://bugs.webkit.org/show_bug.cgi?id=85397 Opera: CORE-46127</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67269</commentid>
    <comment_count>9</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2012-05-02 22:34:17 +0000</bug_when>
    <thetext>DOM3 Events spec now updated with these changes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67349</commentid>
    <comment_count>10</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2012-05-05 19:08:45 +0000</bug_when>
    <thetext>Added a test: http://dvcs.w3.org/hg/webapps/rev/f7745b53fc02</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>