MDL-37477 html_writer: add support for table captions