<?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>24653</bug_id>
          
          <creation_ts>2014-02-13 12:30:58 +0000</creation_ts>
          <short_desc>Planning on changing mutation hooks</short_desc>
          <delta_ts>2014-09-12 18:23:21 +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>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>Unsorted</target_milestone>
          
          <blocked>23268</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Anne">annevk</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>www-dom</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>100517</commentid>
    <comment_count>0</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-02-13 12:30:58 +0000</bug_when>
    <thetext>HTML loosely uses &quot;nodes are inserted&quot; and &quot;nodes are removed&quot; for two elements or so and does not even bother with attribute callbacks.

I&apos;m planning on slightly revamping them in order to fix a bug in NodeIterator.

Is there a way I can write them that will make you use these callbacks throughout HTML?

For the removed callback I plan to provide /removedNode/, /oldParent/, /oldPreviousSibling/ as arguments.

For the inserted callback only /insertedNode/ seems needed.

Similar for attribute changes on an element.


However, I suspect that over time there may be more churn coming to these callbacks due to custom elements and how we envision everything to evolve. So this bug is both a question whether you mind if I change the current callbacks to suit my needs and what your thoughts on the matter are.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100633</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-02-14 21:52:25 +0000</bug_when>
    <thetext>I don&apos;t have any particular thoughts. If there&apos;s cases where the HTML spec is too loose about something Web-detectable, I&apos;m happy to tighten it up. I&apos;m in no rush to do it if it&apos;s going to churn.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101277</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-02-24 22:12:46 +0000</bug_when>
    <thetext>Do you need anything else from me here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110184</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-08-14 14:56:36 +0000</bug_when>
    <thetext>The hooks are now named &quot;insertion steps&quot; and &quot;removing steps&quot; to be consistent with &quot;cloning steps&quot; and &quot;adopting steps&quot;. Sorry for the churn, will try to keep these as is. They are also passed arguments now that can be used.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111454</commentid>
    <comment_count>4</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-09-12 18:23:21 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8769.
Check-in comment: Integrate with DOM for &apos;removing steps&apos; and &apos;insertion steps&apos;.
http://html5.org/tools/web-apps-tracker?from=8768&amp;to=8769</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>