homepage Welcome to WebmasterWorld Guest from 23.22.173.58
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Browsers / Firefox Browser Usage and Support
Forum Library, Charter, Moderators: incrediBILL

Firefox Browser Usage and Support Forum

    
Why do Firefox textareas not wrap as they should
midi25

10+ Year Member



 
Msg#: 223 posted 10:12 pm on Mar 16, 2005 (gmt 0)

Hi I have tried placing a textarea on my page. Its works fine in IE. But when in FF the text dosnt wrap and it just continues to scroll on and on and on.

How can I get around this? Do you still suffer the same problems?

 

tedster

WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 223 posted 4:14 am on Mar 17, 2005 (gmt 0)

I have not noticed or heard of any problem in this area. Are you using cols= and rows= attributes, and is the textarea within a <form> element?

midi25

10+ Year Member



 
Msg#: 223 posted 10:01 am on Mar 17, 2005 (gmt 0)

Yes. If you look at html school on the w3c and then look up the textarea element in the html ref link. They have an example. View it in IE and then view it in Firefox and you will see what I mean.

IE wraps the text while firefox just continues scroll to infinity.

Wish I could post the link.

Thanks

dcrombie

10+ Year Member



 
Msg#: 223 posted 11:56 am on Mar 17, 2005 (gmt 0)

Wraps fine in FireFox (Mac).

It used to be that Netscape required 'wrap="virtual"' as an attribute on the textarea to enable wrapping, but AFAIK that's no longer necessary.

I have one client (out of dozens) who has the same problem in Explorer, so it may be a problem in Windoze rather than the browsers.

midi25

10+ Year Member



 
Msg#: 223 posted 3:32 pm on Mar 17, 2005 (gmt 0)

I am not imagining this.

Can someone please check

<textarea> in FireFox

I have tried it on four different windows machines now. And I am getting the same problem.

IE wraps inner text which is fine. But FF just continues to scroll the text horizontally.

Is this a bug in FF?

Thanks

tedster

WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 223 posted 5:31 pm on Mar 17, 2005 (gmt 0)

look at html school on the w3c and then look up the textarea element in the html ref link.

We do allow links to authoritative resources, such as w3schools.org. Is this the page you are refering to?

[w3schools.com...]

If so, it displays fine in my FireFox browser: FF 1.01 on WinXP SP2

midi25

10+ Year Member



 
Msg#: 223 posted 8:46 pm on Mar 17, 2005 (gmt 0)

Yes that is the page. Its displays ok. But try entering some data and go past the visible content. Instead of wrapping as it should. It just continues to scroll.

Meaning that to get line breaks the user will have to manually press the enter key on the keyboard. This behaviour is no needed in IE as one you reach the end the text it wrapped.

iamlost

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 223 posted 9:10 pm on Mar 17, 2005 (gmt 0)

From w3schools source code:

<textarea rows="2" cols="30">The cat was playing in the garden. Suddenly a dog showed up.....</textarea>

The answer is the number of rows. In their example they have limited rows to "2". Change the number of rows and the behaviour will change.

tedster

WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 223 posted 9:16 pm on Mar 17, 2005 (gmt 0)

Meaning that to get line breaks the user will have to manually press the enter key on the keyboard.

Midi, I get word wrap as needed and a vertical scrollbars as soon as the content requires it - no need for manual enter key returns.

Not sure what you are seeing but I don't think my computer is showing the same thing as yours. The behavior looks the same in IE and Firefox.

midi25

10+ Year Member



 
Msg#: 223 posted 8:59 am on Mar 18, 2005 (gmt 0)

Strange as I have tested this on multiple pcs now and get the same behaviour.

If I type

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

in the textarea. IE will wrap this. FF will just scroll horizontally and keep it all on one line.

Its should work the same as IE but it dosnt.

tedster

WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 223 posted 9:31 am on Mar 18, 2005 (gmt 0)

Yes - I understand what you are saying. I do not see this behavior on the three systems I have checked, and no one else so far has reported seeing it. We have a lot of FireFox users here. All are welcome to check the W3Schools page listed above to check. I think we'll hear from someone else if they see it - then maybe that will help pin it down a bit more.

To be honest, word wrap in a textarea is such a basic browser function, I would be very surprised if it was a widespread failure of FF. There's some other reason you're seeing it besides a bug in the browser - some other combination of who knows what factors.

benihana

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 223 posted 9:40 am on Mar 18, 2005 (gmt 0)

im seeing the same thing when entering long strings with no spaces, on all text areas in FF only. (including this box im typing in now)

FF 1 / win XP

extentions: web dev T/B, SEOpen, checky

skin: #*$!zilla

not that I often enter long strings with no spaces, though...

<added>that is to say, its not a word wrap issue, more of a word break issue</added>

tedster

WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 223 posted 9:34 am on Mar 19, 2005 (gmt 0)

I see it now - I get a natural line break the first time one is needed, but if the unbroken character string continues and there needs to be a second line break, that doesn't happen and then the side-scroll starts.

That is a bug, I'd say. Has anyone found a work-around?

wickydoodah

10+ Year Member



 
Msg#: 223 posted 6:27 pm on Mar 19, 2005 (gmt 0)

My memory is a little hazy this morning, but I think if you add wrap="hard" to the text area tag it will force all text to stay within the defined box (no horizontal scroll). A client of mine had a guestbook on their site and some goof ball would keep posting a l-o-n-g string of continuous text just to break the page layout. Seems to me that after adding wrap="hard" to the text area box it forced the text to always break even if no spaces were entered.

Don't know how Firefox will handle it, but you might give it a try.

dmmh

5+ Year Member



 
Msg#: 223 posted 1:06 pm on Mar 20, 2005 (gmt 0)

Ive been bugged about this too, but I stopped caring :)

MatthewHSE

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 223 posted 5:05 pm on Mar 21, 2005 (gmt 0)

If I'm understanding correctly, I've seen this. FireFox will add horizontal scrollbars to a textarea if the number of consecutive characters unbroken by a space exceeds the width of the textarea. Enter a space, and wrapping will continue as normal.

I always considered it a bug in IE that it would break an unbroken text string. Looking at it now, I wouldn't call either behavior a bug; just different.

bartainer

5+ Year Member



 
Msg#: 223 posted 3:55 pm on Mar 25, 2005 (gmt 0)

I do hope this is what everyone is talking about!

My web master tutor (computer science degree) has detected the problem and did contact Mozzila. What seems to happen is that text is pushed, e.g. when entering info into a field, the text pushes the text box. Furthermore, the horizontal scroll bar will increase in size because the text pushes. Very weird! It is to my understanding; the makers of Firefox are working on this bug! Nice catch.

Ron

Purple Martin

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 223 posted 1:59 am on Mar 29, 2005 (gmt 0)

If I type

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

in the textarea. IE will wrap this. FF will just scroll horizontally and keep it all on one line.


That's what I see too.

Its should work the same as IE but it dosnt.

:) Browsers don't have to be all the same: it's entirely up to the browser makers. Text-wrapping behaviour is something that I've had problems with before: somtimes I wish a browser would behave one way, sometimes I wish the same browser would behave the other way, depending on the situation. There is no "right" or "wrong" for this one.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Browsers / Firefox Browser Usage and Support
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved