Added support for li element inside td/th