fix: html and svg bugs, plus false positive on lint rule (#11364)