2)
change the API so that, if there is a bad title in the titles=
parameter, it still returns the query result for all the valid titles.
That's what I'm gonna do when I fix bug 13390 (it's on my TODO
list).
It's always best to handle invalid data gracefully, especially when it's
easy to encapsulate like this.
Generally we assume that titles we find in the db will be valid, except
when they're not. ;) That means you can treat them as valid for purposes
of, say, optimizing creation of objects (with Title::makeTitle), but you
should still watch out for surprises.
Sometimes you'll end up with a null when you expected an object, and
it's wise to pass it over and render out the rest of the list intact.
Sometimes this means putting in a placeholder results ("Invalid
title!"), sometimes just dropping it from a list is better.
I intend to change
the API to handle invalid titles analogous to missing
titles, i.e. <page ns="0" title="/." invalid="" />
Roan Kattouw (Catrope)