[Proto-Scripty] Re: Element.cleanWhitespace not recursive?

2011-09-02 Thread Victor
cleanWhitespace should not be recursive, at least for inline elements. E.g. 
for HTML fragment the space user will see output *
thespace* (single word) instead of *the space* (two distinct space-separated 
words), which isn't correct.

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/cxO5lQbZb6kJ.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.



[Proto-Scripty] Re: Element.cleanWhitespace not recursive?

2011-05-10 Thread sclaflin
On May 10, 7:22 am, "T.J. Crowder"  wrote:
> On May 10, 8:47 am, Bertilo Wennergren  wrote:
>
> > On Mon, May 9, 2011 at 15:12, sclaflin  wrote:
> > > 1. I don't see any reason for the element = $(element) line, other
> > > than possibly for the return value;
>
> > It's probably there to cater for MSIE.
>
> > --
> > Bertilo Wennergren
> > berti...@gmail.comhttp://bertilow.com
>
> And because you can do `Element.cleanWhitespace("myElementID");`
> --
> T.J. Crowder
> Independent Software Engineer
> tj / crowder software / com
> www / crowder software / com

Ahhh, right.  I didn't think of that because I had assumed there was
some sort of typeof element == 'string' test for that case.

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.



[Proto-Scripty] Re: Element.cleanWhitespace not recursive?

2011-05-10 Thread T.J. Crowder
On May 10, 8:47 am, Bertilo Wennergren  wrote:
> On Mon, May 9, 2011 at 15:12, sclaflin  wrote:
> > 1. I don't see any reason for the element = $(element) line, other
> > than possibly for the return value;
>
> It's probably there to cater for MSIE.
>
> --
> Bertilo Wennergren
> berti...@gmail.comhttp://bertilow.com

And because you can do `Element.cleanWhitespace("myElementID");`
--
T.J. Crowder
Independent Software Engineer
tj / crowder software / com
www / crowder software / com

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.