[whatwg] WF 2.0 -- HTMLTextAreaElement [ type ] attribute
Benjamin Hawkes-Lewis
bhawkeslewis at googlemail.com
Sun Sep 16 12:10:16 PDT 2007
Actually, I suspect I was confusing the type property with the proposed
ACCEPT attribute (thinking of the TYPE attribute used for SCRIPT and
STYLE, which refers to the full MIME type not just the (super-)type). If
the type property is the same as for the INPUT element, then this has
seemingly nothing to do with MIME types: 'hidden' isn't a MIME type for
instance and input type="image" does not submit an image.
Sorry for the red herring. :(
--
Benjamin Hawkes-Lewis
Křištof Želechovski wrote:
> 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