6.0.0-beta1
7/8/25

[#6024] Hard wrap in preference texarea breaks long URLs in IE
Summary Hard wrap in preference texarea breaks long URLs in IE
Queue Horde Framework Packages
Queue Version HEAD
Type Bug
State Resolved
Priority 1. Low
Owners
Requester jason (at) linuxbox (dot) com
Created 12/20/2007 (6410 days ago)
Due
Updated 12/20/2007 (6410 days ago)
Assigned
Resolved 12/20/2007 (6410 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
12/20/2007 09:21:31 PM Chuck Hagenbuch Comment #4
Type ⇒ Bug
State ⇒ Resolved
Priority ⇒ 1. Low
Reply to this comment
This was a bug.
12/20/2007 09:21:19 PM Chuck Hagenbuch Comment #3
State ⇒ Resolved
Reply to this comment
I've removed the wrap tag attribute HEAD and the FRAMEWORK_3 branch.
12/20/2007 09:16:07 PM Chuck Hagenbuch Comment #2
State ⇒ Feedback
Reply to this comment
We normally just want newlines where users enter them, so we shouldn't 
even need String::wrap() - we've removed the wrap attribute from most 
other textareas. Or am I missing something?
12/20/2007 06:11:11 PM jason (at) linuxbox (dot) com Comment #1
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ Hard wrap in preference texarea breaks long URLs in IE
Queue ⇒ Horde Framework Packages
State ⇒ New
Reply to this comment
The file templates/prefs/textarea.inc uses the attribute wrap="hard"   
IE inserts line break characters where the wrapping occurs before 
sending the data back to the server.  If a long URL is entered as part 
of a user's signature, the URL is broken.  Firefox does not respect 
the wrap attribute and therefore does not exhibit this problem.  Two 
possible solutions are:

1 - Use wrap="soft" -- this will wrap in the browser, but be sent to 
the server without line breaks.

2 - Don't use the wrap attribute at all (it's not part of the HTML 4 
or XHTML standards) and have the wrapping done on the server side 
using String::wrap which prevents breaking long words (or URLs)

Saved Queries