[Webkit-unassigned] [Bug 70810] nameNodeListCache should be invalidated when name attribute changes/modified.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 9 13:19:40 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=70810





--- Comment #31 from Arko Saha <nghq36 at motorola.com>  2011-12-09 13:19:39 PST ---
(In reply to comment #30)
> (From update of attachment 118617 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=118617&action=review
> 
> > LayoutTests/fast/dom/getelementsbyname-invalidation-cache.html:27
> > +    element1 = createElement(tagName, { id: 'testElement', name: 'fullname'});
> 
> Once you do that, you don't even need to add id here.

After doing this change test case for div is failing.
PASS createTwoElements('div'); document.getElementsByName('fullname').length is 2
FAIL document.querySelector('div').setAttribute('name', 'changed-name'); document.getElementsByName('fullname').length should be 1. Was 2.

I am not sure what could be the reason behind it. Also observed the same behavior in case of class attribute.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list