<br><br><div><span class="gmail_quote">On 7/18/07, <b class="gmail_sendername">Daniel N</b> &lt;<a href="mailto:has.sox@gmail.com">has.sox@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I&#39;ve started looking at <a href="http://merb.devjavu.com/projects/merb/ticket/90" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ticket 90</a> and there are a couple of situations that the current implementation doesn&#39;t cater for.
<br><br><ol><li>Tag Attributes are wiped out.&nbsp; 
<br></li><ul><li>&lt;tag1 attr1=&#39;1&#39;&gt;Content&lt;/tag1&gt; #=&gt; { &quot;tag1&quot; =&gt; &quot;Content&quot; }</li><li>I think it should return</li><li>{&quot;tag1&quot; =&gt; { &quot;attr1&quot; =&gt; &#39;1&#39;, &quot;__content__&quot; =&gt; &quot;Content&quot; }
</li></ul></ol></blockquote><div><br>Seems I was a bit hasty with my conclusion on this one.&nbsp; I still don&#39;t think it is correct though.<br><br>&lt;tag1 attr=&#39;1&#39;&gt;&lt;strong&gt;Content&lt;/strong&gt;&lt;/tag1&gt;
<br>results in <br>{&quot;tag1&quot;=&gt;{&quot;strong&quot;=&gt;&quot;Content&quot;, &quot;attr&quot;=&gt;&quot;1&quot;}}<br><br>So it seems that you can only have attributes in an element that does not have a child text element.
<br><br>I also tried this<br>&lt;tag1 attr=&#39;1&#39;&gt;&lt;strong&gt;Content&lt;/strong&gt;Mixed Content&lt;/tag1&gt;<br>and got<br>{&quot;tag1&quot;=&gt;&quot;Mixed Content&quot;}<br><br>Just to confirm.<br><br>Any thoughts on what it should be?
<br><br>Cheers<br>Daniel<br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><ol><li>Mixed content can throw an error or get clobbered
</li><ul><li>&lt;tag1&gt;Content &lt;em&gt;is&lt;/em&gt; Clobbered&lt;/tag1&gt; #=&gt; Raises a Private error called on array gsub</li><li>&lt;tag1&gt;Content &lt;em&gt;is&lt;/em&gt;&lt;/tag1&gt; #=&gt; Clobbered.&nbsp; Returns {&quot;tag1&quot;=&gt;&quot;Content &quot;}
</li><li>Feels like it should return</li><li>{&quot;tag1&quot;=&gt;&quot;Content &amp;lt;em&amp;gt;is&amp;lt/em&amp;gt;Clobbered&quot; }</li></ul></ol><br>Is the current behaviour what is required or should these inconsitencies be fixed?
<br><br>Cheers<br><span class="sg">Daniel<br><br>
</span></blockquote></div><br>