<?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>23163</bug_id>
          
          <creation_ts>2013-09-05 03:50:32 +0000</creation_ts>
          <short_desc>[Shadow]: Clarify handling of mutation events</short_desc>
          <delta_ts>2013-10-22 06:54:33 +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 - Component Model</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>23577</dup_id>
          
          <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="Yuta Kitamura">yutak</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>bugs</cc>
    
    <cc>ojan</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>93021</commentid>
    <comment_count>0</comment_count>
    <who name="Yuta Kitamura">yutak</who>
    <bug_when>2013-09-05 03:50:32 +0000</bug_when>
    <thetext>Section 7 reads:
&quot;&quot;&quot;
The mutation event types must never be dispatched in a shadow tree.
&quot;&quot;&quot;

... but this statement looks unclear on what it really means in terms of
its formal requirements.

Specifically:
- What should UAs do if a mutation event occur within a shadow tree?
  - UAs must not &quot;dispatch&quot; the event, in a sense defined in
    &lt;http://dom.spec.whatwg.org/#dispatching-events&gt;?
  - Or, UAs must not &quot;invoke&quot; the event?
  - Either way, we&apos;ll need to monkey-patch the DOM events spec to define
    a desired behavior precisely.

- First of all, why do we need to special-case the mutation events?
  Is there known cases where mutation events interact badly with shadow trees?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93036</commentid>
    <comment_count>1</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2013-09-05 11:05:44 +0000</bug_when>
    <thetext>We&apos;re trying to get rid of MutationEvents so we should try to not expose them
in new contexts.
(And none of the current browser engines implement all the MutationEvents anyway).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93065</commentid>
    <comment_count>2</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2013-09-05 17:34:44 +0000</bug_when>
    <thetext>+1. Lets not fire MutationEvents at all from shadow trees. FWIW, we&apos;re slowly removing existing MutationEvent support from Blink as usage gets low enough.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95070</commentid>
    <comment_count>3</comment_count>
    <who name="Yuta Kitamura">yutak</who>
    <bug_when>2013-10-22 06:54:33 +0000</bug_when>
    <thetext>Yeah, I&apos;m aware that we are trying to kill MutationEvents and I&apos;m okay with
not handling the mutation events.

With that said, I think the remaining issue here boils down to defining
the exact behavior of event dispatching in general. For now, I&apos;m resolving
this bug as a duplicate of bug 23577, which more or less covers the same topic.

*** This bug has been marked as a duplicate of bug 23577 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>