<?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>25224</bug_id>
          
          <creation_ts>2014-04-01 23:27:53 +0000</creation_ts>
          <short_desc>More detail for abort event</short_desc>
          <delta_ts>2014-07-28 21:50:56 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Arkadiusz Michalski (Spirit)">crimsteam</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>103253</commentid>
    <comment_count>0</comment_count>
    <who name="Arkadiusz Michalski (Spirit)">crimsteam</who>
    <bug_when>2014-04-01 23:27:53 +0000</bug_when>
    <thetext>When this event should be exactly fired? 

Algo aborted: http://www.w3.org/html/wg/drafts/html/master/browsers.html#abort-a-document

I see comment for this in source spec:
&lt;!-- I&apos;d love to make this more precise, anyone have any suggestions on what it should say? --&gt;

Bellow algo we have this:
[User agents may allow users to explicitly invoke the abort a document algorithm for a Document. If the user does so, then, if that Document is an active document, the user agent should queue a task to fire a simple event named abort at that Document&apos;s Window object before invoking the abort algorithm.]

What means &quot;explicity&quot;? From JS code, manual, or both? From JS (according to html) only window.close() do this. 

And this event is fired for multimedia elements too :http://www.w3.org/html/wg/drafts/html/master/embedded-content.html#fatal-decode-error(check next dd element because we dont have id for this &lt;&lt; step 3.)
Table for events should include Element (now show only Window): http://www.w3.org/html/wg/drafts/html/master/index.html#event-abort

Algo aborted apper on other algo like:
navigated (http://www.w3.org/html/wg/drafts/html/master/browsers.html#navigate)
discard (http://www.w3.org/html/wg/drafts/html/master/browsers.html#discard-a-document)
But don&apos;t know whether they are treated as &quot;explicity&quot;. User can manual navigate to other place or close document (or programatically). &lt;&lt; all this case should fired abort event?

BTW, in IE press &quot;escape&quot; button fired this event too. This is/should be standard behavior? What if we stop load page when press X icon in browser tooolbar, should fire abort event? 

In other browser it&apos;s seems this event not implemented yet or I don&apos;t know how to fire them so I asked so many questions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105254</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-05-06 23:00:59 +0000</bug_when>
    <thetext>Note that the spec you reference is a fork. The original and canonical spec is:

   http://whatwg.org/html


&gt; What means &quot;explicity&quot;? From JS code, manual, or both?

Users can&apos;t run JS code, so it has to be manually. &quot;Explicitly&quot; means that they&apos;re clearly making the request to run this algorithm specifically, as opposed to implicitly invoking it by doing something that triggers another algorithm that invokes this one or one like it.


&gt; &lt;&lt; all this case should fired abort event?

I&apos;m not sure what you are asking here. The &apos;abort&apos; event is fired whenever the spec says to fire it.


&gt; BTW, in IE press &quot;escape&quot; button fired this event too.

That&apos;s an explicit request to abort, as mentioned in the spec.


Please file a single bug per issue. I&apos;m not really sure what spec changes are needed to address the issues in this bug. Can you clarify what change you are looking for?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105271</commentid>
    <comment_count>2</comment_count>
    <who name="Arkadiusz Michalski (Spirit)">crimsteam</who>
    <bug_when>2014-05-07 01:01:51 +0000</bug_when>
    <thetext>Let&apos;s say that in this case I bother you unnecessarily (but thx for some explanation).

To some benefit from the opening this bug I suggest just add to abort event targets:

http://www.whatwg.org/specs/web-apps/current-work/#event-abort

media element (audio and video); because it would fit.

And maybe add some id=&quot;&quot; for click event in this table, now we can&apos;t refer exactly to this place (where we see possible targets and description for this event).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109227</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-07-23 19:39:35 +0000</bug_when>
    <thetext>All hyperlinks and definitions have IDs now.

The table for media events is at:
   http://www.whatwg.org/specs/web-apps/current-work/#mediaevents

I don&apos;t really want to have to update the main event index every time the media event stuff changes, which is why they&apos;re not merged currently.

Does that make sense?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109240</commentid>
    <comment_count>4</comment_count>
    <who name="Arkadiusz Michalski (Spirit)">crimsteam</who>
    <bug_when>2014-07-23 23:30:07 +0000</bug_when>
    <thetext>(In reply to Ian &apos;Hixie&apos; Hickson from comment #3)
&gt; Does that make sense?

Sure, now I see that below main event index we have some information:

[See also media element events, application cache events, and drag-and-drop events.]

It is sufficient, you can close this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109423</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-07-28 21:50:56 +0000</bug_when>
    <thetext>Great, thanks for following up!

Please don&apos;t hesitate to file other bugs or reopen this one if you change your mind.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>