toDOM(String) support and test example