fixes #15164: wrap disable pagination spans in another span