http://www.perlmonks.org?node_id=474104


in reply to Re: HTML::Treebuilder - DOCTYPE
in thread HTML::Treebuilder - DOCTYPE

Thanks for the quick reply gellyfish.

Unfortunately, it's that very method that causes the problem.

The default option in Treebuilder $tree->store_declarations(0); is to not store the declerations. When I run the program this way, the decleration is dropped altogether. When I use $tree->store_declarations(1); the doctype is inserted after the closing body tag.

Do you have any other suggestions?

-Shawn