modify html5_detect