unexpected xhtml output with WARenderCanvas

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

unexpected xhtml output with WARenderCanvas

Joseph Blatter
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
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: unexpected xhtml output with WARenderCanvas

Boris Popov, DeepCove Labs (SNN)
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

[hidden email]

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: [hidden email] [mailto:[hidden email]] On Behalf Of Joseph Blatter
Sent: Wednesday, October 18, 2006 1:53 PM
To: [hidden email]
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
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: unexpected xhtml output with WARenderCanvas

Joseph Blatter
Does that mean I must modify my code because of IE
lacks/poor support of CSS2? I'm using CSS2 properties,
(like input[type="text"]).

I encourage my users to not use propietary buggy
technologies like IE simply because I'm not an
employee of Microsoft and I cannot be responsible for
their bugs or anti-standards policy.

IMHO I cannot agree with the sentence "the output is
correct". If anyone sends a meesage that maps its
output to xhtml, let's say ...classId: 'aString' would
expect mapped to id='aString' and not to id='aString
somethingElse'.
Any tips?

regards

 --- Boris Popov <[hidden email]> escribió:

> 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
>
> [hidden email]
>
> 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: [hidden email]
> [mailto:[hidden email]]
> On Behalf Of Joseph Blatter
> Sent: Wednesday, October 18, 2006 1:53 PM
> To: [hidden email]
> 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
> [hidden email]
>
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> _______________________________________________
> Seaside mailing list
> [hidden email]
>
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>


__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya - http://correo.espanol.yahoo.com/ 
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: unexpected xhtml output with WARenderCanvas

Boris Popov, DeepCove Labs (SNN)
But elements can have multiple classes, there's nothing wrong with "myclass button" as it simply means this element has been assigned 2 classes: "myClass" and "button". So long as you're not defining your own .button classes for other reasons, that would be the only problem I can see with Seaside adding it in for you, in all other cases its simply ignored by the browser.

Hope this helps,

-Boris

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

[hidden email]

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: [hidden email] [mailto:[hidden email]] On Behalf Of Joseph Blatter
Sent: Friday, October 20, 2006 11:34 AM
To: The Squeak Enterprise Aubergines Server - general discussion.
Subject: RE: [Seaside] unexpected xhtml output with WARenderCanvas

Does that mean I must modify my code because of IE
lacks/poor support of CSS2? I'm using CSS2 properties,
(like input[type="text"]).

I encourage my users to not use propietary buggy
technologies like IE simply because I'm not an
employee of Microsoft and I cannot be responsible for
their bugs or anti-standards policy.

IMHO I cannot agree with the sentence "the output is
correct". If anyone sends a meesage that maps its
output to xhtml, let's say ...classId: 'aString' would
expect mapped to id='aString' and not to id='aString
somethingElse'.
Any tips?

regards

 --- Boris Popov <[hidden email]> escribió:

> 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
>
> [hidden email]
>
> 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: [hidden email]
> [mailto:[hidden email]]
> On Behalf Of Joseph Blatter
> Sent: Wednesday, October 18, 2006 1:53 PM
> To: [hidden email]
> 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
> [hidden email]
>
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> _______________________________________________
> Seaside mailing list
> [hidden email]
>
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>


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