[Petal] Petal::Parser::HTB bug

Chris Croome chris at webarchitects.co.uk
Mon Oct 13 13:38:32 BST 2003


Hi

On Mon 13-Oct-2003 at 01:26:52PM +0100, Jean-Michel Hiver wrote:
> > I'm seeing a bug in Petal 1.10_05 when used in conjunction with
> > Petal::Parser::HTB. If a <span> tag is inside of a textarea tag,
> > it will not be converted by Petal. For example:
> > 
> > <textarea name="fld_desc" ROWS="15" COLS="60" WRAP="SOFT"> <span
> > petal:replace="edit/fld_desc"></span> </textarea>
> 
> I *think* it might be because HTML::TreeBuilder would strip out
> the <span> tag within the textarea box since I don't think it's
> valid to have spans within textareas in HTML (But I might be
> wrong).
> 
> So basically HTML::TreeBuilder picks this as 'a bug in the HTML'
> and strips the foobared tag. I think :)

That sounds like what is happening -- AFAIK it is invalid to have
any tags within a textarea, _however_ I can't actually find a
reference to this anywhere... 

  http://www.w3.org/TR/html4/interact/forms.html#edef-TEXTAREA

  http://htmlhelp.com/reference/html40/forms/textarea.html

Chris

-- 
Chris Croome                               <chris at webarchitects.co.uk>
web design                             http://www.webarchitects.co.uk/ 
web content management                               http://mkdoc.com/   


More information about the Petal mailing list