<textarea wrap="">

<textarea wrap="">

textarea 要素 wrap 属性 (HTML)

[13] HTMLtextarea 要素wrap 属性は、 折返しに関する動作を指定します。

[15]

状態
WHATWG WD
要素型
textarea
属性名
wrap (wrap (折返し) より)
属性値
列挙型 (>>16)
既定値
soft (>>17)

[14] 仕様書:

[16]属性値

[47] MAMA: Forms - Opera Developer Community ( 版) <http://dev.opera.com/articles/view/mama-forms/#textarea>

レンダリング

[20] cols 省略時

利用者エージェントは、 wraphard と設定されており、 cols 属性が与えられていない時は、 提出時の文章折返しには表示幅を使用するべきですWF2 2.14

[21] 空白

CSS に対応した利用者エージェントは、 textarea 要素white-space 特性で指定されたようにレンダリングするべきです。 ただし、利用者エージェントは、 利用者エージェント・スタイル・シートにおいて white-space 特性既定値wrap 属性値に基づき決定して構いませんWF2 2.14

フォーム

[22] 改行の表現

textarea 提出時に、 改行は、 U+000D U+000A (CRLF) で表現しなければなりません。 これは、 hard の時に追加される改行の場合もです。 また、 maxlength 属性の制約に合致するかの判定でも2文字あるものと数えます。 WF2 2.14

関連

[19] 著者は、 wraphard と設定した時は、 cols 属性も設定するべきですWF2 2.14

メモ

[2] 非標準の属性で、値が yes のとき折り返し、 no のとき折り返しません。

[3] cols属性の値と要素の内容によっては、表示の時に文字列が収まりきらないことがあります。 この時に、表示範囲の端で折り返すかどうかを指定します。

[1] HTML4 はこの場合の動作は実装依存としています。 (<IW:HTML4:"interact/forms.html#h-17.7">)

[1] <http://groups.google.com/groups?selm=E9qwL6.7CL%40vega.aichi-u.ac.jp>

[40] LAN工事ドットコム掲示板 (2007-09-24 14:31:04 +09:00 版) <http://lan-kouji.com/cgi-local/yybbs/yybbs.cgi?page=5&bl=0&list=thread>

<textarea cols="52" rows="7" name="name" wrap="soft" class="f"></textarea>

(名無しさん)

[46] 言語ツール (2008-06-08 00:33:26 +09:00 版) <http://www.google.co.jp/language_tools?q=related:www.wretch.cc/blog/junesnow%26article_id%3D7253850&hl=ja&ie=UTF-8>

<textarea name=text rows=7 wrap=PHYSICAL id=source></textarea>

(名無しさん)

メモ

[23]

<pre wrap>

(名無しさん)

[24] [ANE] Re: Ahiram ZP(L (2005-04-08 11:09:14 +09:00 版) <https://listhost.uchicago.edu/pipermail/ane/2002-December/005039.html>

<p WRAP>yes, in a certain sense I favour case one for Ahiram (and the other
Byblian inscription's) Z. But let me explain.
<div WRAP></div>

(名無しさん)

[25] Updates and Errata (2007-01-12 07:10:08 +09:00 版) <http://www.unicode.org/errata/>

              <td valign="top">2006-September-10</td>
              <td>
				<p wrap>The file Index.txt file in version 5.0.0 of the Unicode 

(名無しさん)

[26] Bug 242896 &#8211; HTML email uses incompatible <pre wrap=""> tag (2007-02-10 13:33:28 +09:00 版) <https://bugzilla.mozilla.org/show_bug.cgi?id=242896> (名無しさん)

[27] XML.com: Simple Text Wrapping (Antoine Quint 著, 2007-04-01 07:17:26 +09:00 版) <http://www.xml.com/pub/a/2002/09/11/quint.html> (名無しさん)

[35] ワラビ採り - G・conほのぼの日記 - 楽天ブログ(Blog) (2007-08-02 21:31:35 +09:00 版) <http://plaza.rakuten.co.jp/gconcert/diary/200706150000/>

Weblog注釈フォームでの利用例:

      <td align="right" nowrap>メッセージ</td>
      <td nowrap valign="middle">
        <textarea name="form_body" cols="48" rows="5" wrap="soft"></textarea>
        <BR>

ちなみに、この文書text/html ながら

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja">

ではじまる。 (名無しさん)

[48] [whatwg] Textarea wrap=off ( 版) <http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-August/022022.html>

[49] New HTML 3.0 Proposals ( ( 版)) <http://web.archive.org/web/19970806103517/http://www31.netscape.com/assist/net_sites/new_html3_prop.html>

[50] Welcome to Netscape Navigator Version 2.0 ( ( 版)) <http://web.archive.org/web/20030202175634/http://wp.netscape.com/eng/mozilla/2.0/relnotes/windows-2.0.html#Images>

[8] Editorial: always state invalid value default (GloverDonovan著, ) <https://github.com/whatwg/html/commit/7e941ae96b264d4743ea0afac00c3b3209ab0cde>