[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:40:03 PST 2011


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





--- Comment #32 from Ryosuke Niwa <rniwa at webkit.org>  2011-12-09 13:40:03 PST ---
(From update of attachment 118617)
View in context: https://bugs.webkit.org/attachment.cgi?id=118617&action=review

>>> LayoutTests/fast/dom/getelementsbyname-invalidation-cache.html:27

>> 
>> 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.

Is parseMappedAttribute called when you set the attribute before getElementsByName is called?

-- 
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