473,651 Members | 2,743 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CSS equivalent of IE's wrap="off" and wrap="hard"

Hello fellow stylers,

What would be the best CSS equivalent of MSIE's wrap="off" and wrap="hard"?

hard Text is displayed with wordwrapping and submitted with soft returns
and line feeds.

off Wordwrapping is disabled. The lines appear exactly as the user types
them.

http://msdn.microsoft.com/workshop/a...asp?frame=true

Gérard
--
remove blah to email me
Mar 16 '06 #1
4 8500
Gérard Talbot wrote:

What would be the best CSS equivalent of MSIE's wrap="off" and wrap="hard"?

There is none.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Mar 16 '06 #2
Gérard Talbot wrote:
What would be the best CSS equivalent of MSIE's wrap="off" and wrap="hard"?


Have you checked the recent "textarea wrap" thread? It's a bit confused,
but it becomes relatively clear if you ignore everything that "VK" wrote.
Mar 16 '06 #3
Jukka K. Korpela wrote :
Gérard Talbot wrote:
What would be the best CSS equivalent of MSIE's wrap="off" and
wrap="hard"?
Have you checked the recent "textarea wrap" thread?


Believe me: I submitted this post before noticing that other thread.

It's a bit confused, but it becomes relatively clear if you ignore everything that "VK" wrote.


I stopped at the point where there is too much fighting. My question is
a technical one; it shouldn't lead to fighting.

MSDN "hard Text is displayed with wordwrapping and submitted with
soft returns and line feeds."

CSS 2.1 on white-space: pre-line says:
"This value directs user agents to collapse sequences of whitespace.
Lines are broken at newlines in the source, at occurrences of "\A" in
generated content, and as necessary to fill line boxes."

I think (though am not sure) the 2 are not equivalent.

Gérard
--
remove blah to email me
Mar 16 '06 #4
Gérard Talbot wrote:
I stopped at the point where there is too much fighting.
There was no fighting; it takes two to fighting. In the other thread,
there was information and disinformation, and someone kept repeating the
disinformation (and apparently got nervous when repeatedly corrected).
My question is
a technical one; it shouldn't lead to fighting.
Welcome to Usenet. :-)
MSDN "hard Text is displayed with wordwrapping and submitted with
soft returns and line feeds."
That's Microsoftese for saying that the browser, in addition to
displaying (echoing) data in a certain way, distorts the data by
inserting line breaks (Carriage Return and Line Feed). The word "soft"
is particularly misleading here.
CSS 2.1 on white-space: pre-line says:
"This value directs user agents to collapse sequences of whitespace.
Lines are broken at newlines in the source, at occurrences of "\A" in
generated content, and as necessary to fill line boxes."
CSS 2.1 is a draft that says that it is inappropriate to cite it as
other than work as progress, though the W3C itself in effect presents
CSS 2.1 as the current CSS specification. Confused? You _will_ be after
hearing that although in general CSS 2.1 is the closest thing we have to
a de facto standard, some particular features there are not widely
supported. Note that CSS 2.0, which is still formally the W3C
Recommendation, does not contain the value pre-line.
I think (though am not sure) the 2 are not equivalent.


They surely aren't, since the CSS thing relates to rendering only, not
to submitted data.

The attribute wrap="off" is pointless, because the design of an
application that involves processing form data cannot reliably expect
and need not expect to have data processed the way that wrap="off"
suggests. Browsers might ignore the nonstandard attribute. Besides,
users can do something nasty like use a modified version of the form to
submit data. Hence, the form handler should be prepared to anything,
including arbitrarily long lines. It's a very small part of robust form
data processing to split lines if needed.
Mar 17 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

68
4339
by: Marco Bubke | last post by:
Hi I have read some mail on the dev mailing list about PEP 318 and find the new Syntax really ugly. def foo(x, y): pass I call this foo(1, 2), this isn't really intuitive to me! Also I don't like the brackets.
0
2339
by: Anthony Baxter | last post by:
To go along with the 2.4a3 release, here's an updated version of the decorator PEP. It describes the state of decorators as they are in 2.4a3. PEP: 318 Title: Decorators for Functions and Methods Version: $Revision: 1.34 $ Last-Modified: $Date: 2004/09/03 09:32:50 $ Author: Kevin D. Smith, Jim Jewett, Skip Montanaro, Anthony Baxter
43
42792
by: Dimitri Debruyne | last post by:
Hi group I am in the process of developing a website in XHTML Strict and CSS. Is there a way to open a link in a new window without the use of frames or Javascript or something ? I didn't find a way ... TIA
99
6075
by: Jim Hubbard | last post by:
It seems that Microsoft not only does not need the classic Visual Basic developer army (the largest army of developers the world has ever seen), but now they don't need ANY Windows developer at a small or mid-sized business. http://groups-beta.google.com/group/microsoft.public.msdn.general/browse_thread/thread/9d7e8f9a00c1c7da/459ca99eb0e7c328?q=%22Proposed+MSDN+subscription+changes%22&rnum=1#459ca99eb0e7c328 Damn! To be that...
3
10041
by: Dave Hammond | last post by:
Hi All, This one is a bit bizarre. My understanding of "Access is denied" with respect to window.moveTo is that it results from a request which would move a portion of the window off screen. The window in question is 480 high by 1000 wide. The screen dimensions are 1024x768. The move request is to 10,10, which would put the max right coordinate of the window at 1010 and the max bottom coordinate at 490. Both coordinates are...
134
7857
by: James A. Donald | last post by:
I am contemplating getting into Python, which is used by engineers I admire - google and Bram Cohen, but was horrified to read "no variable or argument declarations are necessary." Surely that means that if I misspell a variable name, my program will mysteriously fail to work with no error message. If you don't declare variables, you can inadvertently re-use an variable used in an enclosing context when you don't intend to, or
32
3790
by: Marcus | last post by:
We all know that the "gets" function from the Standard C Library (which is part of the Standard C++ Library) is dangerous. It provides no bounds check, so it's easy to overwrite memory when using it, and impossible to guarantee that it won't happen. Therefore, i think it's surprising that this function has not been deprecated. The C++98 Standard keeps it from the C89 standard. The C99 Standard has kept it :-o.
169
9051
by: JohnQ | last post by:
(The "C++ Grammer" thread in comp.lang.c++.moderated prompted this post). It would be more than a little bit nice if C++ was much "cleaner" (less complex) so that it wasn't a major world wide untaking to create a toolchain for it. Way back when, there used to be something called "Small C". I wonder if the creator(s) of that would want to embark on creating a nice little Small C++ compiler devoid of C++ language features that make...
206
8284
by: WaterWalk | last post by:
I've just read an article "Building Robust System" by Gerald Jay Sussman. The article is here: http://swiss.csail.mit.edu/classes/symbolic/spring07/readings/robust-systems.pdf In it there is a footprint which says: "Indeed, one often hears arguments against building exibility into an engineered sys- tem. For example, in the philosophy of the computer language Python it is claimed: \There should be one|and preferably only one|obvious...
0
8357
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8700
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8465
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5612
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4144
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4285
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2701
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1910
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1588
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.