dumped html5 implementation