add support for html5 elements and svg