<div>Hi,</div><div><br></div>I've finally got round to fixing Seafox [1] and it will now correctly translate:<div><br></div><div><span class="Apple-style-span" style="font-family:arial,sans-serif;font-size:13px"><pre style="font-size:12px;white-space:pre-wrap;max-width:80em;padding-left:0.7em">
<section>
<header>
<h1>foo</h1>
</header>
<p>bar</p>
</section></pre></span><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse:collapse"><br></span></font><span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><div>
The translation issue was caused by Seafox's simply string comparison failing as WAHtmlCanvas>>#section and WAHtmlCanvas>>#header had a superfluous white space - a CR - at the end of their string. </div></span><span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">The following tags where effected:</span><span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><div>
<br></div><div><div><div>summary</div><div>header</div><div>section</div><div>footer</div></div></div><div><br></div></span>I've made Seafox a little more resilient using <span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">#withoutTrailingBlanks</span> and the extra space has been removed from the these tags in the latest canvas [2] - see:</div>
<div><span class="Apple-style-span" style="font-family:arial,sans-serif;font-size:13px"><pre style="font-size:12px;white-space:pre-wrap;max-width:80em;padding-left:0.7em">Name: Seaside-HTML5-pmm.28
Author: pmm
Time: 24 January 2012, 7:30:51 am
UUID: 75c03738-39b6-4138-8857-2fd11a8ebb32
Ancestors: Seaside-HTML5-NickAger.26</pre></span></div><div><div><br></div><div>[1] <a href="http://seafox.seasidehosting.st/" target="_blank">http://seafox.seasidehosting.<u></u>st/</a> </div><div>[2] <a href="https://code.google.com/p/seaside/issues/detail?id=701">https://code.google.com/p/seaside/issues/detail?id=701</a></div>
<div><br></div><div>Nick</div><div><br></div><div><br><div class="gmail_quote">On 20 January 2012 16:36, Nick Ager <span dir="ltr"><<a href="mailto:nick.ager@gmail.com">nick.ager@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Paul, Stefan,<div><br></div><div>Hmmm, that seems more like a bug with Seafox - I'll try to have a look this weekend and put a new version up</div><span class="HOEnZb"><font color="#888888"><div><br></div></font></span><div>
<span class="HOEnZb"><font color="#888888">Nick</font></span><div><div class="h5"><br><br><div class="gmail_quote">On 20 January 2012 16:29, Paul DeBruicker <span dir="ltr"><<a href="mailto:pdebruic@gmail.com" target="_blank">pdebruic@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I uploaded a package to the Seaside issues list that fixes this issue.<br>
<br>
Its here: <a href="https://code.google.com/p/seaside/issues/detail?id=701" target="_blank">https://code.google.com/p/<u></u>seaside/issues/detail?id=701</a><div><div><br>
<br>
<br>
On 12-01-20 07:05 AM, Stefan Scholl wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Nick Ager<<a href="mailto:nick.ager@gmail.com" target="_blank">nick.ager@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Nick Ager<<a href="mailto:nick.ager@gmail.com" target="_blank">nick.ager@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
and there is always seafox to help you translate:<br>
<a href="http://seafox.seasidehosting.st/" target="_blank">http://seafox.seasidehosting.<u></u>st/</a><br>
</blockquote>
<br>
Doesn't support HTML5 (only as unkown elements), but helps to<br>
port some structures.<br>
</blockquote>
<br>
Strange - it should support all the Html elements and attributes Seaside<br>
supports. Is there some specific html that it hasn't translated correctly?<br>
</blockquote>
<br>
<br>
<section><br>
<header><br>
<h1>foo</h1><br>
</header><br>
<p>bar</p><br>
</section><br>
<br>
===><br>
<br>
"Unrecognised element 'section'"<br>
(html tag: 'section') with:[<br>
"Unrecognised element 'header'"<br>
(html tag: 'header') with:[<br>
html heading level: 1; with: 'foo' ].<br>
html paragraph: 'bar' ]<br>
<br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.<u></u>squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.<u></u>org/cgi-bin/mailman/listinfo/<u></u>seaside</a><br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.<u></u>squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.<u></u>org/cgi-bin/mailman/listinfo/<u></u>seaside</a><br>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div></div>