[Seaside] unexpected xhtml output with WARenderCanvas

Boris Popov boris at deepcovelabs.com
Wed Oct 18 21:00:25 UTC 2006


See WAFormTag>>with: where you'll find this bit,

self class: self type

Quoting Lukas from thread called "Default classes for form input tags",

"The reason I added that, was because IE does not support conditions
(input[type="text"] or input["button"]) in CSS selectors. If you have
the type as a class you can easily do the same in a cross platform way
(input.text or input.button), though it requires that your CSS
designer does not use selectors like .text but something more specific
like div.text if you have a conflict."

In other words the output is correct, but Seaside adds an extra class to form tags to help out CSS designers out there.

Cheers,

-Boris

-- 
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5

boris at deepcovelabs.com

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

-----Original Message-----
From: seaside-bounces at lists.squeakfoundation.org [mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf Of Joseph Blatter
Sent: Wednesday, October 18, 2006 1:53 PM
To: seaside at lists.squeakfoundation.org
Subject: [Seaside] unexpected xhtml output with WARenderCanvas

when trying to set a style using the #rendererClass =
WARenderCanvas and a very simple subclass of
WAComponent which implements:

WAExampleComponent>>renderContentOn: aRenderer

   aRenderer textInput
  	class: 'nothing';
	text: 'hello'.

after setting the entry point, and toggle with the
halos, the code generated is:

<input class="nothing text" value="hello" type="text"
/>

whereas the correct output would be

<input class="nothing" value="hello" type="text" />

i'm missing something? i'm using Seaside 2.7a1-pmm.93

regards



__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.espanol.yahoo.com/ 
_______________________________________________
Seaside mailing list
Seaside at lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


More information about the Seaside mailing list