[Petal] Petal::Parser::HTB bug

Jean-Michel Hiver jhiver at mkdoc.com
Mon Oct 13 13:26:52 BST 2003


> 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 :)

Cheers,
-- 
Building a better web - http://www.mkdoc.com/
---------------------------------------------
Jean-Michel Hiver
jhiver at mkdoc.com  - +44 (0)114 255 8097
Homepage: http://www.webmatrix.net/


More information about the Petal mailing list