Subject: | meta tags in body create an invalid parse |
Date: | Mon, 26 Mar 2012 09:36:34 -0400 |
To: | bug-HTML-Tree [...] rt.cpan.org |
From: | Seth Goldstein <seth [...] flashgroup.com> |
tree-builder: 4.2
per: This is perl, v5.10.1 (*) built for i686-cygwin-thread-multi-64int
OS: cygwin and linux
A <meta> tag in the body causes the document parse to be incorrect.
As an example,
parsing and printing as_html with a meta-tag causes the following
structure to be created:
Original:
<div id="gallery-subcontent" class="module">
<script language="javascript"
src="http://www.latimes.com/hive/javascripts/ugc/ugc.js"
type="text/javascript">
</script>
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Cache-Control" content="no-cache" />
<a name="comment-form" id="comment-form" >
</a>
<!-- new display -->
<div id="tugs_story_display">
parsed and printed as html:
<div class="module" id="gallery-subcontent">
<script language="javascript"
src="http://www.latimes.com/hive/javascripts/ugc/ugc.js"
type="text/javascript">
</script>
</div>
</div>
</div>
</div>
</div><a id="comment-form" name="comment-form"> </a><div
id="tugs_story_display">
--
-----
Seth Copen Goldstein
FlashGroup: Connecting people through intention
412-818-1192