[whatwg] WF 2.0 -- HTMLTextAreaElement [ type ] attribute

Křištof Želechovski giecrilj at stegny.2a.pl
Sun Sep 16 11:36:05 PDT 2007


Of the MIME type text/plain, text is the type and plain is the subtype.  In
my opinion, the type property should not vary in order to remain consistent
with its behavior in other controls; you can suggest a subtype property if
you find it useful.

Cheers
Chris

-----Original Message-----
From: Benjamin Hawkes-Lewis [mailto:bhawkeslewis at googlemail.com] 
Sent: Saturday, September 15, 2007 4:08 PM
To: Kristof Zelechovski
Cc: 'Garrett Smith'; whatwg at whatwg.org
Subject: Re: [whatwg] WF 2.0 -- HTMLTextAreaElement [ type ] attribute

Presumably return a MIME type e.g. text/plain, text/html. IIRC this idea 
was never fully thought out. Many textareas accepting HTML actually want 
a fragment and often only a subset of markup. It would be handy to have 
some way of specifying such profiles for clientside authoring tools to use.

--
Benjamin Hawkes-Lewis

Kristof Zelechovski wrote:
> If I were one, I would return "text", just like it does in an input
control
> does.
> 
> Cheers
> Chris
> 
> -----Original Message-----
> From: whatwg-bounces at lists.whatwg.org
> [mailto:whatwg-bounces at lists.whatwg.org] On Behalf Of Garrett Smith
> Sent: Friday, September 14, 2007 2:53 AM
> To: whatwg at whatwg.org
> Subject: [whatwg] WF 2.0 -- HTMLTextAreaElement [ type ] attribute
> 
> Regarding the [type] attribute:
> ================================================
> interface HTMLTextAreaElement : HTMLElement {
>            attribute DOMString       defaultValue;
>   readonly attribute HTMLFormElement form;
>            attribute DOMString       accessKey;
>            attribute long            cols;
>            attribute boolean         disabled;
>            attribute DOMString       name;
>            attribute boolean         readOnly;
>            attribute long            rows;
>            attribute long            tabIndex;
>   readonly attribute DOMString       type;
> ================================================
> 
> What does the |type| attribute do?
> 





More information about the whatwg mailing list