rexml/httpwrite, why must you mock me?
why the lucky stiff
why at hobix.com
Tue Sep 27 02:27:05 EDT 2005
Daniel Sheppard wrote:
> Then I noticed something strange - my rewritten feed had no content in
> the <link/> elements. Apparently, the reason for this is the
> rexml/httpwrite.rb code - which seems to be designed to ensure that
> HTML elements that aren't meant to have content don't end up having
> any content… Why does this code exist? Shouldn't it by the task of the
> tree builder to put the right things in the right nodes? Otherwise,
> wouldn't it be better to have something walking the tree and trimming
> the bad nodes before it gets output?
>
Sounds like HtmlDocumentConverter just needs REXML::HtmlElements to go
along with it, leaving regular REXML::Elements uneffected.
Regarding the rewrite of non-HTML goods, maybe a `mime_type' directive
or `allow_non_html' directive?
_why
More information about the Mousehole-scripters
mailing list