thymeleaf/thymeleaf — pull request #38 by ultraq (2012-07-24 23:16:45+00:00)
Title: Allow changing of the DocType

Now that Thymeleaf doesn't require full HTML pages, I've been asked to be able to support the same with my dialect, meaning I could encounter cases like this:

This is some paragraph text.

I've made changes to support such cases just fine, but the resulting page lacks a doctype. The decorator does have a doctype but I can't copy it over because the `org.thymeleaf.dom.Document` class lacks a method to change it.

This pull request just adds a `setDocType` method to the `Document` class, allowing this test case to pass.

Are there any issues with changing the doctype though?