HTMLCollection: Use Element's hasName/hasID flags to avoid unnecessary work.
Created attachment 125557 [details]
Comment on attachment 125557 [details]
This patch makes me think the following refactoring would be a good idea:
(1) Change getIdAttribute() to check hasID() for you;
(2) Add a getNameAttribute() that works just like getIdAttribute().
Now, as long as you use these functions when getting name and/or id, everything is fast, and you remove a lot of the code you've introduced in this patch.
Created attachment 126631 [details]
Better patch with getIdAttribute() and getNameAttribute() as suggested by Geoff.
Comment on attachment 126631 [details]
Clearing flags on attachment: 126631
Committed r107477: <http://trac.webkit.org/changeset/107477>
All reviewed patches have been landed. Closing bug.