This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23577 - [Shadow]: Events section needs rewrite with extensions to other specifications in mind
Summary: [Shadow]: Events section needs rewrite with extensions to other specification...
Status: RESOLVED LATER
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Dimitri Glazkov
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
: 23163 (view as bug list)
Depends on:
Blocks: 22716
  Show dependency treegraph
 
Reported: 2013-10-21 09:31 UTC by Yuta Kitamura
Modified: 2014-05-29 07:13 UTC (History)
1 user (show)

See Also:


Attachments

Description Yuta Kitamura 2013-10-21 09:31:29 UTC
Currently, the "Events" section has a number of structural problems:

* The exact steps of event dispatch is unclear; although there are a number of
  rules defined in section 7.6, but it's still unclear how the UAs can apply
  them in the procedural definitions in the DOM specification.
    * For instance, when should a UA run "event path calculation algorithm"?
      How should it apply the algorithm when it's about to dispatch an event
      <http://dom.spec.whatwg.org/#dispatching-events>, in what order?

* It's super unclear what part of the specification is an extension to the
  DOM spec (where the behavior of events is defined), and what is an extension
  to the HTML spec (where every event that can happen in the HTML land is
  defined). Currently the both are ad-hocly intermixed.
    * For example, the algorithms in section 7 and 7.1 are basically part of
      the DOM specification, but events listed in section 7.1 are from
      the HTML specification.

There are also not-so-critial issues:
* Two algorithms "event path calculation algorithm" and "modified event path
  calculation algorithm" are almost identical except for one step. These can
  be consolidated into one.
* Limitation for mutation event types is written in the first paragraph of
  section 7, but it's unclear what the UAs are expected to do on such events.
* Section 7.7 should serve as informational purposes only.

With that in mind, I think the whole section needs some love. Especially,
we probably should consider how to separate the section into two pieces,
extension to the DOM spec and extension to the HTML spec, and how to glue
these. Doing so will make the events behavior more well-defined, I guess.
Comment 1 Yuta Kitamura 2013-10-22 06:54:33 UTC
*** Bug 23163 has been marked as a duplicate of this bug. ***
Comment 2 Hayato Ito 2014-05-29 07:13:49 UTC
Let me close this.

Some of the issues have been already addressed.
Although there are still remaining issues which were mentioned in comment #0, let's focus on more higher priority issues.

I appreciate if someone could file a issue mentioned in comment #0 separately so that we can tacked an issue step by step.