By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,487 Members | 1,090 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,487 IT Pros & Developers. It's quick & easy.

Wrap attribute

P: n/a
<textarea name="application" cols="50" rows="12" wrap="virtual"
class="textarea"></textarea>

Apparently "wrap" is deprecated or not allowed for html 4.01, any
suggestions on what I should use instead?


Jul 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Toronto Web Designer wrote:
<textarea name="application" cols="50" rows="12" wrap="virtual"
class="textarea"></textarea>

Apparently "wrap" is deprecated or not allowed for html 4.01, any
suggestions on what I should use instead?


It's not deprecated, it's not even standardised! It looks like a
microsoft, or maybe netscape, proprietry presentational attribute which
means it should never be used. Try the CSS 'white-space' property. I
have no idea what wrap="virtual" is supposed to mean, so I can't tell
you which value to use.

--
Lachlan Hunt
http://www.lachy.id.au/
la**********@lachy.id.au.update.virus.scanners

Remove .update.virus.scanners to email me,
NO SPAM and NO VIRUSES!!!
Jul 20 '05 #2

P: n/a
Lachlan Hunt <la**********@lachy.id.au.update.virus.scanners> wrote:
Toronto Web Designer wrote:
<textarea name="application" cols="50" rows="12" wrap="virtual"
class="textarea"></textarea>

Apparently "wrap" is deprecated or not allowed for html 4.01, any
suggestions on what I should use instead?
It's not deprecated, it's not even standardised! It looks like a
microsoft, or maybe netscape, proprietry presentational attribute which
means it should never be used.


Microsoft has the wrap attribute, but the valid values are "soft",
"hard", and "off". "Virtual" isn't among them. With "soft" and "hard",
text wraps at the right side of the textbox; with "hard", the line
breaks created by wrapping are actually embedded in the data submitted
with the form.
Try the CSS 'white-space' property. I
have no idea what wrap="virtual" is supposed to mean, so I can't tell
you which value to use.

--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ôter le premier point de mon adresse de courriel.
Jul 20 '05 #3

P: n/a
Harlan Messinger wrote:
Microsoft has the wrap attribute, but the valid values are "soft",
"hard", and "off".


Yes, I knew about hard and soft values. The WHAT-WG has introduced
the wrap attribute with those values in Web Forms 2 [1]. wrap="off"
seems very presentational, which is probably why it wasn't included in
the draft. "off" would be equivalent to 'white-space: nowrap;'

Hard and Soft are definately questionable, and I will be bringing
those points up in the WHAT-WG list when I've had the opportunity to get
through the whole draft spec. I'd never even heard of virtual, and I
can't even begin to understand where it came from or what it means,
which is what I meant with I said I had no idea about it.

[1]
http://www.whatwg.org/specs/web-form...s/#extensions2
--
Lachlan Hunt
http://www.lachy.id.au/
la**********@lachy.id.au.update.virus.scanners

Remove .update.virus.scanners to email me,
NO SPAM and NO VIRUSES!!!
Jul 20 '05 #4

P: n/a
Harlan Messinger <hm*******************@comcast.net> wrote:
Microsoft has the wrap attribute, but the valid values are "soft",
"hard", and "off". "Virtual" isn't among them.


Wrap was actually invented by Netscape and later copied by MS. Both
companies were inconsistent in their description of the possible
values, with documentation not matching implementation. Virtual should
act the same as soft.

See http://wp.netscape.com/assist/net_si...rop.html#Forms

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.