[Seaside] Re: HTML generation for people who know HTML?

Nick Ager nick.ager at gmail.com
Tue Jan 24 08:09:12 UTC 2012


Hi,

I've finally got round to fixing Seafox [1] and it will now correctly
translate:

<section>
 <header>
  <h1>foo</h1>
 </header>
 <p>bar</p>
</section>


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.
The following tags where effected:

summary
header
section
footer

I've made Seafox a little more resilient using #withoutTrailingBlanks and
the extra space has been removed from the these tags in the latest canvas
[2] - see:

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


[1] http://seafox.seasidehosting.**st/ <http://seafox.seasidehosting.st/>
[2] https://code.google.com/p/seaside/issues/detail?id=701

Nick


On 20 January 2012 16:36, Nick Ager <nick.ager at gmail.com> wrote:

> Hi Paul, Stefan,
>
> Hmmm, that seems more like a bug with Seafox - I'll try to have a look
> this weekend and put a new version up
>
> Nick
>
>
> On 20 January 2012 16:29, Paul DeBruicker <pdebruic at gmail.com> wrote:
>
>> I uploaded a package to the Seaside issues list that fixes this issue.
>>
>> Its here:  https://code.google.com/p/**seaside/issues/detail?id=701<https://code.google.com/p/seaside/issues/detail?id=701>
>>
>>
>>
>> On 12-01-20 07:05 AM, Stefan Scholl wrote:
>>
>>> Nick Ager<nick.ager at gmail.com>  wrote:
>>>
>>>> Nick Ager<nick.ager at gmail.com>  wrote:
>>>>>
>>>>>> and there is always seafox to help you translate:
>>>>>> http://seafox.seasidehosting.**st/ <http://seafox.seasidehosting.st/>
>>>>>>
>>>>>
>>>>> Doesn't support HTML5 (only as unkown elements), but helps to
>>>>> port some structures.
>>>>>
>>>>
>>>> Strange - it should support all the Html elements and attributes Seaside
>>>> supports. Is there some specific html that it hasn't translated
>>>> correctly?
>>>>
>>>
>>>
>>> <section>
>>>  <header>
>>>   <h1>foo</h1>
>>>  </header>
>>>  <p>bar</p>
>>> </section>
>>>
>>> ===>
>>>
>>> "Unrecognised element 'section'"
>>> (html tag: 'section') with:[
>>>        "Unrecognised element 'header'"
>>>        (html tag: 'header') with:[
>>>                html heading level: 1; with: 'foo' ].
>>>        html paragraph: 'bar' ]
>>>
>>>
>>>
>>>
>>>
>>> ______________________________**_________________
>>> seaside mailing list
>>> seaside at lists.**squeakfoundation.org<seaside at lists.squeakfoundation.org>
>>> http://lists.squeakfoundation.**org/cgi-bin/mailman/listinfo/**seaside<http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside>
>>>
>>
>> ______________________________**_________________
>> seaside mailing list
>> seaside at lists.**squeakfoundation.org <seaside at lists.squeakfoundation.org>
>> http://lists.squeakfoundation.**org/cgi-bin/mailman/listinfo/**seaside<http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20120124/4fd7af4b/attachment.htm


More information about the seaside mailing list