Lib: tyxml, restore missing function

cc @balat 
@drup: can you add types in `Html5_types` for `dir`, `figure`, `rp`, `rt`, `ruby`