<?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>25295</bug_id>
          
          <creation_ts>2014-04-09 07:49:09 +0000</creation_ts>
          <short_desc>Small bugs in the descriptions</short_desc>
          <delta_ts>2014-04-16 00:06:37 +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></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="Arkadiusz Michalski (Spirit)">crimsteam</reporter>
          <assigned_to name="Travis Leithead [MSFT]">travil</assigned_to>
          <cc>garykac</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>103590</commentid>
    <comment_count>0</comment_count>
    <who name="Arkadiusz Michalski (Spirit)">crimsteam</who>
    <bug_when>2014-04-09 07:49:09 +0000</bug_when>
    <thetext>Hi, I gathered together a few minor bugs:

-----------
Missing one argument in initCompositionEvent()
Now we have five:
void initCompositionEvent (DOMString typeArg, boolean bubblesArg, boolean cancelableArg, Window? viewArg, DOMString? dataArg);
Should be six:
void initCompositionEvent (DOMString typeArg, boolean bubblesArg, boolean cancelableArg, Window? viewArg, long detailArg, DOMString? dataArg);

-----------
Missing define the FocusEventInit dictionary. All other interface have them.

-----------
Wrong comment in some place:

4.2 Interface CustomEvent Introduced in DOM Level 2 &lt;&lt; should be Introduced in DOM Level 3
4.3 Interface EventTarget Introduced in DOM Level 3 &lt;&lt; should be Introduced in DOM Level 2

MouseEvent.buttons &lt;&lt; sholud be mark that Introduced in DOM Level 3

-----------
Target for event type is not complete. I understand that you wrote:
&quot;When used with an [XML 1.0] or [HTML5] application, the specifications of those languages MAY restrict the semantics and scope (in particular the possible event targets) associated with an event type.&quot;

But now we have different event target within the same specification:
for event resize (https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#event-type-resize) we have defaultView but in event table (https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#h4_event-types-list) we have defaultView, Document.

-----------
In the table that defines the types of events, rows &quot;Context info: UIEvent.view&quot; somtimes have only defaultView, but there is also defaultView, null. These are the correct values? Look:
blur UIEvent.view: defaultView
focus, focusin, focusout UIEvent.view: defaultView, null
Any explanation why they have different values​​?

Te same situtation:
load, unload, abort, error, select UIEvent.view: defaultView, null
resize, scroll UIEvent.view: defaultView</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103647</commentid>
    <comment_count>1</comment_count>
    <who name="Arkadiusz Michalski (Spirit)">crimsteam</who>
    <bug_when>2014-04-10 00:13:51 +0000</bug_when>
    <thetext>The next few;

-----------
https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#idl-interface-MouseEvent-initializers
partial interface MouseEvent {
    // Deprecated in DOM Level 3 &lt;&lt; should be &quot;Changed and depreaced in DOM Level 3&quot; 
};

This method has one additional argument (when compared with D2E) so better inform about them.

-----------
https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#idl-def-Event
IDL for isTrusted has the form: readonly attribute boolean isTrusted;

http://dom.spec.whatwg.org/#interface-event
In new DOM we have additional extended attribute: [Unforgeable] readonly attribute boolean isTrusted;

It&apos;s important and should be add.

Similar situation (but less meaning):

interface DocumentEvent {
    Event createEvent (DOMString eventInterface);
};

change to:

interface DocumentEvent {
    [NewObject] Event createEvent (DOMString eventInterface);
};

-----------
Please for all parameters in method/constructor/table description delete &quot;Arg&quot; sufiks. It&apos;s unnecessary and extends the descriptions (especially init*Event). I checked few other specyfications and none of them use &quot;Arg&quot;. This will enhance convergence between documents.

Even in D3E sometimes you don&apos;t use them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103916</commentid>
    <comment_count>2</comment_count>
    <who name="Gary Kacmarcik">garykac</who>
    <bug_when>2014-04-15 23:03:16 +0000</bug_when>
    <thetext>(Thank you for taking the time to make these comments.  I&apos;ve broken some of these issues out into separate bugs because it&apos;s harder to track the items when they&apos;re in a single bug.)

(1) Missing one argument in initCompositionEvent()...

These are deprecated, so we&apos;re not updating the definitions. We would update them only if a browser vendor is shipping a version with the extra argument.

(2) Missing define the FocusEventInit dictionary...

Done.

(3) Wrong comment in some place...

Done.

(4) Target for event type is not complete...

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25357

(5) Review &quot;Context info: UIEvent.view&quot;...

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25358

(6) initMouseEvent changed in DOM3...

Done. Fixed spec by removing |buttons| parameter. See discussion in 25346.

(7) [unforgeable] isTrusted and [NewObject] createEvent

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25359

(8) Remove &apos;Arg&apos; suffix from arguments

I&apos;ll do this as part of a later cleanup. Please create a bug if you want to track progress.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103918</commentid>
    <comment_count>3</comment_count>
    <who name="Arkadiusz Michalski (Spirit)">crimsteam</who>
    <bug_when>2014-04-15 23:24:07 +0000</bug_when>
    <thetext>&gt; (Thank you for taking the time to make these comments.  I&apos;ve broken some of
&gt; these issues out into separate bugs because it&apos;s harder to track the items
&gt; when they&apos;re in a single bug.)

Ok, and have small question, if I have realy small bugs like dead link, missing &quot;(&quot; etc., then open for all this case separate bug or take all and wriite in one place?

&gt; (1) Missing one argument in initCompositionEvent()...
&gt; 
&gt; These are deprecated, so we&apos;re not updating the definitions. We would update
&gt; them only if a browser vendor is shipping a version with the extra argument.

Problem is that Firefox and IE expected 6 arguments, with 5 throw error.
TypeError: Not enough arguments to CompositionEvent.initCompositionEvent.
That&apos;s why I mentioned about it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103921</commentid>
    <comment_count>4</comment_count>
    <who name="Arkadiusz Michalski (Spirit)">crimsteam</who>
    <bug_when>2014-04-15 23:48:41 +0000</bug_when>
    <thetext>I checked this more closely:

https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent
http://msdn.microsoft.com/en-us/library/ie/ff975300%28v=vs.85%29.aspx

So missing is:
DOMString  locale 
(provide in http://www.w3.org/TR/uievents#widl-CompositionEvent-locale)

Chrome doesn&apos;t support locale property so that why initCompositionEvent() take only 5 arguments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103923</commentid>
    <comment_count>5</comment_count>
    <who name="Gary Kacmarcik">garykac</who>
    <bug_when>2014-04-16 00:06:37 +0000</bug_when>
    <thetext>(In reply to spiritRKS1910 from comment #3)
&gt; &gt; (Thank you for taking the time to make these comments.  I&apos;ve broken some of
&gt; &gt; these issues out into separate bugs because it&apos;s harder to track the items
&gt; &gt; when they&apos;re in a single bug.)
&gt; 
&gt; Ok, and have small question, if I have realy small bugs like dead link,
&gt; missing &quot;(&quot; etc., then open for all this case separate bug or take all and
&gt; wriite in one place?

Please group related bugs, but have a separate bug for each group. E.g., one bug for all the broken links, one with all the typos, ...

&gt; &gt; (1) Missing one argument in initCompositionEvent()...
&gt; &gt; 
&gt; &gt; These are deprecated, so we&apos;re not updating the definitions. We would update
&gt; &gt; them only if a browser vendor is shipping a version with the extra argument.
&gt; 
&gt; Problem is that Firefox and IE expected 6 arguments, with 5 throw error.
&gt; TypeError: Not enough arguments to CompositionEvent.initCompositionEvent.
&gt; That&apos;s why I mentioned about it.

Ah. |locale| was moved into UIEvents since we don&apos;t (yet) have a good definition for it. It seems weird to include it as a param for initCompositionEvent when we don&apos;t have it as an attribute, but if that&apos;s what FF and IE expect that we need to document the real world.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>