Hash.from_xml

Daniel N has.sox at gmail.com
Wed Jul 18 07:09:23 EDT 2007


On 7/18/07, Daniel N <has.sox at gmail.com> wrote:
>
> Hi,
>
> I've started looking at ticket 90<http://merb.devjavu.com/projects/merb/ticket/90>and there are a couple of situations that the current implementation doesn't
> cater for.
>
>
>    1. Tag Attributes are wiped out.
>    - <tag1 attr1='1'>Content</tag1> #=> { "tag1" => "Content" }
>       - I think it should return
>       - {"tag1" => { "attr1" => '1', "__content__" => "Content" }
>    2. Mixed content can throw an error or get clobbered
>       - <tag1>Content <em>is</em> Clobbered</tag1> #=> Raises a
>       Private error called on array gsub
>       - <tag1>Content <em>is</em></tag1> #=> Clobbered.  Returns
>       {"tag1"=>"Content "}
>       - Feels like it should return
>       - {"tag1"=>"Content &lt;em&gt;is&lt/em&gt;Clobbered" }
>
>
Perhaps
 <tag1>Content <em>is</em> Clobbered</tag1>
should return
{ "tag1" => "Content <em>is</em> Clobbered" }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/merb-devel/attachments/20070718/44323236/attachment.html 


More information about the Merb-devel mailing list