I think there should just be no parent when there isn't any, rather than "top".
Woopsie! Could we add ancestor information too? Sorry I'm such a goofus!
Ok. I removed all instances of parent="top".