serialize by html5lib