in reply to Re: HTML::TreeBuilder bug or feature?
in thread HTML::TreeBuilder bug or feature?
I trimmed the !DOCTYPE tag contents down because I didn't need more than that to demonstrate the problem, which is that the declaration tag and the comment tag move to after the body when the HTML is generated. Actually, that is the way it is stored in $tree. Swapping the two problematic tag entries in $tree->{_content} to the start of the array "fixes" the problem.
The sample "HTML" is not intended to be valid beyond the extent needed to demonstrate the problem.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: HTML::TreeBuilder bug or feature?
by pg (Canon) on Sep 07, 2005 at 05:12 UTC | |
by GrandFather (Saint) on Sep 07, 2005 at 05:17 UTC |