On Dec 11, 2009, at 10:58 AM, Ricardo Signes wrote:

>>  http://github.com/rjbs/pod-simple/tree/xhtml-region
> 
> David and I spoke about this on AIM a little...
> 
> Right now, given this input in Pod::Simple::HTML:
> 
>  =begin html
> 
>  <div>...</div>
> 
>  =end html
> 
> The HTML is passed through untouched.  If you do the same thing in
> Pod::Simple::XHTML, the HTML is entity escaped before being passed along.
> 
> I had assumed this was intentional, and my changes add an 'xhtml' region which
> is untouched.  David suggested that this is an error.
> 
> Anybody know?  I would like to get this sorted out so I can rely on it. :)

I asked Graham earlier this week if he'd consider switching to 
Pod::Simple::XHTML, and his comment was that, if we did that, and someone had 
invalid html in a `=for html` section, it would make the whole document 
invalid. Of course, we were both working on the assumption that `=for html` 
stuff would be passed through unmolested.

I'm not sure it should be. I mean, it'd be easiest to do so, but another choice 
might be to parse it and fix validation issues.

But at any rate, the current implementation of escaping the content seems wrong 
to me. If I wanted that, I'd use a verbatim block.

Best,

David

Reply via email to