Right now, HTMLCollection gets invalidated lazily by checking DOM tree version. However, various attempts to simplify DynamicNodeList's invalidation model proved that our current invalidation model for DynamicNodeList is indeed effective. We should make HTMLCollection use the same model.
Created attachment 150278 [details] work in progress Unfortunately, we have to do more refactoring around invalidateNodeListsCacheAfterAttributeChanged to avoid invalidating node lists and html collections when attribute that had changed don't affect node lists and html collections.
Created attachment 152186 [details] Patch
Comment on attachment 152186 [details] Patch Attachment 152186 [details] did not pass mac-ews (mac): Output: http://queues.webkit.org/results/13239018
Comment on attachment 152186 [details] Patch Attachment 152186 [details] did not pass win-ews (win): Output: http://queues.webkit.org/results/13230132
Comment on attachment 152186 [details] Patch Attachment 152186 [details] did not pass qt-wk2-ews (qt): Output: http://queues.webkit.org/results/13236046
Comment on attachment 152186 [details] Patch Attachment 152186 [details] did not pass qt-ews (qt): Output: http://queues.webkit.org/results/13205999
Comment on attachment 152186 [details] Patch Attachment 152186 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/13233060
Created attachment 152312 [details] Fixed builds
Committed r122621: <http://trac.webkit.org/changeset/122621>