<?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>20491</bug_id>
          
          <creation_ts>2012-12-22 00:45:53 +0000</creation_ts>
          <short_desc>[Custom]: Need to actually define the upgrade algorithm so it&apos;s interoperably implementable</short_desc>
          <delta_ts>2013-04-10 20:49:20 +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>PC</rep_platform>
          <op_sys>All</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>
          
          <blocked>17103</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Boris Zbarsky">bzbarsky</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>80519</commentid>
    <comment_count>0</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2012-12-22 00:45:53 +0000</bug_when>
    <thetext>Spec says:

&gt;  &quot;For each element ELEMENT in TREE whose custom element name is NAME: &quot;

In what order?  What happens when the various events that fire during this algorithm trigger handlers that mutate TREE?

This thing needs to be very clearly defined.  As a start, I would recommend not firing any events until after all the other work is done.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81291</commentid>
    <comment_count>1</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-01-12 00:38:14 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; Spec says:
&gt; 
&gt; &gt;  &quot;For each element ELEMENT in TREE whose custom element name is NAME: &quot;
&gt; 
&gt; In what order? 

Good point, needs to be in tree order.

What happens when the various events that fire during this
&gt; algorithm trigger handlers that mutate TREE?

Can you help me understand what you mean here? The algorithm does suppress observers currently (although this might not be the right thing). Which other events are you talking about it?

&gt; 
&gt; This thing needs to be very clearly defined.  As a start, I would recommend
&gt; not firing any events until after all the other work is done.

If you&apos;re talking about elementreplace and elementupgrade events, I don&apos;t see any harm in them being fired after each upgrade?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81293</commentid>
    <comment_count>2</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2013-01-12 01:08:18 +0000</bug_when>
    <thetext>&gt; Which other events are you talking about it?

Mutation events, for one thing. 

But also, suppressing mutation observers may well not be ok.  See the separate bug filed on that.

But most importantly, the elementreplace and elementupgrade events.

&gt; I don&apos;t see any harm in them being fired after each upgrade?

Let me re-ask: What happens when the various events that fire during this algorithm trigger handlers that mutate TREE?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85883</commentid>
    <comment_count>3</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-04-10 20:49:20 +0000</bug_when>
    <thetext>The spec has been updated to address this a while back.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>