Make happy with the classes and ids on parent elements in nested stacks.