Have LiveNodeLists / HTMLCollections's elementMatches() take a const reference instead of a pointer. The Element argument can never be null.
Created attachment 238276 [details] Patch
Comment on attachment 238276 [details] Patch Seems fine. The choice of when to use const and when not to seems a little random, but everything in the patch seems to make things better, not worse.
Comment on attachment 238276 [details] Patch Clearing flags on attachment: 238276 Committed r173723: <http://trac.webkit.org/changeset/173723>
All reviewed patches have been landed. Closing bug.
(In reply to comment #2) > (From update of attachment 238276 [details]) > Seems fine. The choice of when to use const and when not to seems a little random, but everything in the patch seems to make things better, not worse. I made the argument const when possible, that is, everywhere except for the virtual elementMatches() because some of the implementation calls non-const getters on the Element.