MDL-47086: Improve html_writer::tag function handling of void tags