<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>19759</bug_id>
          
          <creation_ts>2008-06-24 18:14:20 -0700</creation_ts>
          <short_desc>Needs test: ChildNodeList for an attribute node is not properly invalidated after appending a child.</short_desc>
          <delta_ts>2010-06-18 17:16:55 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>33850</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Brichford">chrisb</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>84326</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Brichford">chrisb</who>
    <bug_when>2008-06-24 18:14:20 -0700</bug_when>
    <thetext>The length property of a ChildNodeList for an attribute node does not change after append a new text node to the attribute node.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84327</commentid>
    <comment_count>1</comment_count>
      <attachid>21919</attachid>
    <who name="Chris Brichford">chrisb</who>
    <bug_when>2008-06-24 18:15:17 -0700</bug_when>
    <thetext>Created attachment 21919
Test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84328</commentid>
    <comment_count>2</comment_count>
      <attachid>21920</attachid>
    <who name="Chris Brichford">chrisb</who>
    <bug_when>2008-06-24 18:19:06 -0700</bug_when>
    <thetext>Created attachment 21920
Improved test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84329</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Brichford">chrisb</who>
    <bug_when>2008-06-24 18:21:37 -0700</bug_when>
    <thetext>FireFox ( v2 and v3) throws an exception when appendChild on the attribute node in the attached test case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84335</commentid>
    <comment_count>4</comment_count>
      <attachid>21921</attachid>
    <who name="Chris Brichford">chrisb</who>
    <bug_when>2008-06-24 20:41:43 -0700</bug_when>
    <thetext>Created attachment 21921
Another version of the test case

This test case demonstrates that accessing the length property of the ChildNodeList before the call to appendChild changes the value of the length property after the call to appendChild.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84368</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-06-25 02:51:02 -0700</bug_when>
    <thetext>Confirming, because this is formally a bug, but it seems to be quite low priority, given that there is now known content affected, that Firefox doesn&apos;t support this, and that there are talks of deprecating attribute nodes in HTML DOM altogether.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84412</commentid>
    <comment_count>6</comment_count>
    <who name="Chris Brichford">chrisb</who>
    <bug_when>2008-06-25 09:28:25 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; Confirming, because this is formally a bug, but it seems to be quite low
&gt; priority, given that there is now known content affected, that Firefox doesn&apos;t
&gt; support this, and that there are talks of deprecating attribute nodes in HTML
&gt; DOM altogether.
&gt; 

Fair enough.  I entered this bug because one our internal unit tests was failing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>239506</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-06-17 11:47:18 -0700</bug_when>
    <thetext>This was fixed in bug 33850, but it would be nice to land this version of test case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>240225</commentid>
    <comment_count>8</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-06-18 17:16:55 -0700</bug_when>
    <thetext>Landed the test in &lt;http://trac.webkit.org/changeset/61457&gt;.

*** This bug has been marked as a duplicate of bug 33850 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>21919</attachid>
            <date>2008-06-24 18:15:17 -0700</date>
            <delta_ts>2008-06-24 18:19:06 -0700</delta_ts>
            <desc>Test case</desc>
            <filename>foo.html</filename>
            <type>text/html</type>
            <size>520</size>
            <attacher name="Chris Brichford">chrisb</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPgo8c2NyaXB0PgpmdW5jdGlvbiBvbkxvYWQoKQp7CiAgICB2YXIgdGhlRGl2
ID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoInRoZURpdiIpOwogICAgdmFyIHRoZUF0dHJzID0g
dGhlRGl2LmF0dHJpYnV0ZXM7CiAgICB2YXIgbmFtZUF0dHIgPSB0aGVBdHRycy5nZXROYW1lZEl0
ZW0oIm5hbWUiKTsKICAgIHZhciBuYW1lQXR0ckNoaWxkTm9kZXMgPSBuYW1lQXR0ci5jaGlsZE5v
ZGVzOwogICAgdmFyIHRleHROb2RlID0gZG9jdW1lbnQuY3JlYXRlVGV4dE5vZGUoInRlcmRheSIp
OwogICAgd2luZG93LmFsZXJ0KG5hbWVBdHRyQ2hpbGROb2Rlcy5sZW5ndGgpOwogICAgbmFtZUF0
dHIuYXBwZW5kQ2hpbGQodGV4dE5vZGUpOwogICAgd2luZG93LmFsZXJ0KG5hbWVBdHRyQ2hpbGRO
b2Rlcy5sZW5ndGgpOwogICAgCn0KPC9zY3JpcHQ+CjwvaGVhZD4KPGJvZHkgb25sb2FkPSJvbkxv
YWQoKTsiPgo8ZGl2IGlkPSJ0aGVEaXYiIG5hbWU9IlllcyI+SGVsbG88L2Rpdj4KPC9ib2R5Pgo8
L2h0bWw+Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>21920</attachid>
            <date>2008-06-24 18:19:06 -0700</date>
            <delta_ts>2008-06-24 18:19:06 -0700</delta_ts>
            <desc>Improved test case</desc>
            <filename>foo.html</filename>
            <type>text/html</type>
            <size>638</size>
            <attacher name="Chris Brichford">chrisb</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPgo8c2NyaXB0PgpmdW5jdGlvbiBvbkxvYWQoKQp7CiAgICB2YXIgdGhlRGl2
ID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoInRoZURpdiIpOwogICAgdmFyIHRoZUF0dHJzID0g
dGhlRGl2LmF0dHJpYnV0ZXM7CiAgICB2YXIgbmFtZUF0dHIgPSB0aGVBdHRycy5nZXROYW1lZEl0
ZW0oIm5hbWUiKTsKICAgIHZhciBuYW1lQXR0ckNoaWxkTm9kZXMgPSBuYW1lQXR0ci5jaGlsZE5v
ZGVzOwogICAgdmFyIHRleHROb2RlID0gZG9jdW1lbnQuY3JlYXRlVGV4dE5vZGUoInRlcmRheSIp
OwogICAgd2luZG93LmFsZXJ0KCJiZWZvcmUgYXBwZW5kOiBsZW5ndGg9IiArIG5hbWVBdHRyQ2hp
bGROb2Rlcy5sZW5ndGggKyAiLCB2YWx1ZT0iICsgbmFtZUF0dHIubm9kZVZhbHVlICk7CiAgICBu
YW1lQXR0ci5hcHBlbmRDaGlsZCh0ZXh0Tm9kZSk7CiAgICB3aW5kb3cuYWxlcnQoImFmdGVyIGFw
cGVuZDogbGVuZ3RoPSIgKyBuYW1lQXR0ckNoaWxkTm9kZXMubGVuZ3RoICsgIiwgdmFsdWU9IiAr
IG5hbWVBdHRyLm5vZGVWYWx1ZSApOwp9Cjwvc2NyaXB0Pgo8L2hlYWQ+Cjxib2R5IG9ubG9hZD0i
b25Mb2FkKCk7Ij4KPGRpdiBpZD0idGhlRGl2IiBuYW1lPSJZZXMiPkhlbGxvPC9kaXY+CjwvYm9k
eT4KPC9odG1sPgo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>21921</attachid>
            <date>2008-06-24 20:41:43 -0700</date>
            <delta_ts>2008-06-24 20:41:43 -0700</delta_ts>
            <desc>Another version of the test case</desc>
            <filename>foo.html</filename>
            <type>text/html</type>
            <size>927</size>
            <attacher name="Chris Brichford">chrisb</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPgo8c2NyaXB0PgpmdW5jdGlvbiBvbkxvYWQoKQp7CiAgICB2YXIgdGhlRGl2
ID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoInRoZURpdiIpOwogICAgdmFyIHRoZUF0dHJzID0g
dGhlRGl2LmF0dHJpYnV0ZXM7CgogICAgdmFyIG5hbWVBdHRyID0gdGhlQXR0cnMuZ2V0TmFtZWRJ
dGVtKCJuYW1lIik7CiAgICB2YXIgbmFtZUF0dHJDaGlsZE5vZGVzID0gbmFtZUF0dHIuY2hpbGRO
b2RlczsKICAgIHZhciB0ZXh0Tm9kZSA9IGRvY3VtZW50LmNyZWF0ZVRleHROb2RlKCJ0ZXJkYXki
KTsKICAgIHZhciB1bnVzZWQgPSBuYW1lQXR0ckNoaWxkTm9kZXMubGVuZ3RoOwogICAgbmFtZUF0
dHIuYXBwZW5kQ2hpbGQodGV4dE5vZGUpOwoKICAgIHZhciBuYW1lMkF0dHIgPSB0aGVBdHRycy5n
ZXROYW1lZEl0ZW0oIm5hbWUyIik7CiAgICB2YXIgbmFtZTJBdHRyQ2hpbGROb2RlcyA9IG5hbWUy
QXR0ci5jaGlsZE5vZGVzOwogICAgdmFyIHRleHROb2RlMiA9IGRvY3VtZW50LmNyZWF0ZVRleHRO
b2RlKCJ0ZXJkYXkiKTsKICAgIG5hbWUyQXR0ci5hcHBlbmRDaGlsZCh0ZXh0Tm9kZTIpOwoJCiAg
ICBpZiAobmFtZUF0dHJDaGlsZE5vZGVzLmxlbmd0aCAhPSBuYW1lMkF0dHJDaGlsZE5vZGVzLmxl
bmd0aCkKCXdpbmRvdy5hbGVydCgiRmFpbGVkOiBuYW1lQXR0ckNoaWxkTm9kZXMubGVuZ3RoPSIg
KyBuYW1lQXR0ckNoaWxkTm9kZXMubGVuZ3RoICsgIiwgbmFtZTJBdHRyQ2hpbGROb2Rlcy5sZW5n
dGg9IiArIG5hbWUyQXR0ckNoaWxkTm9kZXMubGVuZ3RoKTsKICAgIGVsc2UKCXdpbmRvdy5hbGVy
dCgiUGFzc2VkISEiKTsKfQo8L3NjcmlwdD4KPC9oZWFkPgo8Ym9keSBvbmxvYWQ9Im9uTG9hZCgp
OyI+CjxkaXYgaWQ9InRoZURpdiIgbmFtZT0iWWVzIiBuYW1lMj0iWWVzIj5IZWxsbzwvZGl2Pgo8
L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>