PEBKAC on which type of div should fail; clarified in comments within output()