Summary: | Needs test: ChildNodeList for an attribute node is not properly invalidated after appending a child. | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Chris Brichford <chrisb> | ||||||||
Component: | DOM | Assignee: | Nobody <webkit-unassigned> | ||||||||
Status: | RESOLVED DUPLICATE | ||||||||||
Severity: | Normal | CC: | ap | ||||||||
Priority: | P4 | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | Mac | ||||||||||
OS: | OS X 10.4 | ||||||||||
Attachments: |
|
Description
Chris Brichford
2008-06-24 18:14:20 PDT
Created attachment 21919 [details]
Test case
Created attachment 21920 [details]
Improved test case
FireFox ( v2 and v3) throws an exception when appendChild on the attribute node in the attached test case. Created attachment 21921 [details]
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.
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't support this, and that there are talks of deprecating attribute nodes in HTML DOM altogether. (In reply to comment #5) > 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't > support this, and that there are talks of deprecating attribute nodes in HTML > DOM altogether. > Fair enough. I entered this bug because one our internal unit tests was failing. This was fixed in bug 33850, but it would be nice to land this version of test case. Landed the test in <http://trac.webkit.org/changeset/61457>. *** This bug has been marked as a duplicate of bug 33850 *** |