Skip Menu |

This queue is for tickets about the HTML-Tree CPAN distribution.

Report information
The Basics
Id: 76051
Status: new
Priority: 0/
Queue: HTML-Tree

People
Owner: Nobody in particular
Requestors: seth [...] flashgroup.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
Subject: Re: meta tags in body create an invalid parse (UPDATE)
Date: Mon, 26 Mar 2012 09:47:15 -0400
To: bug-HTML-Tree [...] rt.cpan.org
From: Seth Goldstein <seth [...] flashgroup.com>
if I edit HTML:TagSet tp include meta as body element as well, then it parses fine. On Mon, Mar 26, 2012 at 9:36 AM, Seth Goldstein <seth@flashgroup.com> wrote: Show quoted text
> 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
-- ----- Seth Copen Goldstein FlashGroup: Connecting people through intention 412-818-1192