Re: per-paragraph auto-direction, a.k.a. dir=uba

<textarea> allows user input, has the look and feel of an input (e.g. the
border around it), and serves as a field in a form.

The new element is for display only, like <pre>.

Aharon

On Wed, Aug 25, 2010 at 4:23 PM, Ehsan Akhgari <ehsan@mozilla.com> wrote:

> On Wed, Aug 25, 2010 at 8:41 AM, Aharon (Vladimir) Lanin
> <aharon@google.com> wrote:
> > Whether the default behavior of <textarea> should / can change is a
> separate
> > question. But to achieve this more limited goal without running into the
> > problems described above, we could allow dir=uba on just two elements:
> > <textarea> and a new element that we could call <textareadiv> or perhaps
> > <plaintext>. The latter would be just like a <pre> except that:
> >
> > It would not allow mark-up (in the same way that <textarea> does not
> allow
> > mark-up).
> > It would have the same script-accessible properties as <textarea>,
> including
> > a settable value property.
> >
> > In other words, it would be the output counterpart of <textarea>. In
> terms
> > of CSS, dir=uba would result in unicode-bidi having the new value "uba"
> > (which is only allowed on <textarea> and <plaintext>); the element would
> > inherit direction as normal, but its effect under unicode-bidi:uba would
> be
> > limited to when the content is completely neutral.
>
> What purposes would the second element serve?  I don't see its
> advantage over <textarea>.
>
>
> --
> Ehsan
> <http://ehsanakhgari.org/>
>

Received on Wednesday, 25 August 2010 14:03:47 UTC