HTML: Enhances expand selection feature. (#903)